docs: Caching Module (#13701)

* standard docs for caching module + deprecated cache module

* added guides for creating + using, and overall changes from cache to caching

* fix details related to redis provider

* fix build errors

* fix build error

* fixes

* add guides to sidebar

* add sidebar util

* document query + index

* moved cache tag conventions

* fix build errors

* added migration guide

* added memcached guide

* fixes

* general fixes and updates

* updated reference

* document medusa cache

* small fix

* fixes

* remove cloud cache

* revert edit dates changes

* revert edit dates

* small update
This commit is contained in:
Shahed Nasser
2025-10-21 10:34:27 +03:00
committed by GitHub
parent eefda0edce
commit 76f9da5ef4
50 changed files with 10530 additions and 145 deletions

View File

@@ -9,6 +9,7 @@ import {
FeatureFlagNotice,
InlineCode,
MarkdownContent,
MDXComponents,
} from "@/components"
import clsx from "clsx"
import { Type, CommonProps as ParentCommonProps } from ".."
@@ -136,9 +137,36 @@ const TypeListItem = ({
<>
{item.description && (
<MarkdownContent
allowedElements={["a", "strong", "code", "ul", "ol", "li"]}
allowedElements={[
"a",
"strong",
"code",
"ul",
"ol",
"li",
"br",
]}
unwrapDisallowed={true}
className="text-medium"
components={{
...MDXComponents,
ol: (props: React.HTMLAttributes<HTMLElement>) => (
// @ts-expect-error Not recognized as a JSX element
<MDXComponents.ol
{...props}
className={clsx(props.className, "mt-docs_1.5")}
/>
),
li: (props: React.HTMLAttributes<HTMLElement>) => (
// @ts-expect-error Not recognized as a JSX element
<MDXComponents.li
{...props}
className={clsx(
props.className,
"!text-medusa-fg-subtle"
)}
/>
),
}}
>
{item.description}
</MarkdownContent>