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:
@@ -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>
|
||||
|
||||
@@ -185,8 +185,8 @@ export const navDropdownItems: NavigationItem[] = [
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
title: "Cache",
|
||||
link: "/resources/infrastructure-modules/cache",
|
||||
title: "Caching",
|
||||
link: "/resources/infrastructure-modules/caching",
|
||||
},
|
||||
{
|
||||
type: "link",
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
export const caching = [
|
||||
{
|
||||
"title": "Use Caching Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/caching-service"
|
||||
},
|
||||
{
|
||||
"title": "Create Caching Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/caching-module-provider"
|
||||
}
|
||||
]
|
||||
@@ -59,6 +59,14 @@ export const howTo = [
|
||||
"title": "Use Cache Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/cache-service"
|
||||
},
|
||||
{
|
||||
"title": "Use Caching Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/caching-service"
|
||||
},
|
||||
{
|
||||
"title": "Create Caching Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/caching-module-provider"
|
||||
},
|
||||
{
|
||||
"title": "Use Event Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/event-service"
|
||||
|
||||
@@ -3,6 +3,7 @@ export * from "./analytics.js"
|
||||
export * from "./api-key.js"
|
||||
export * from "./auth.js"
|
||||
export * from "./cache.js"
|
||||
export * from "./caching.js"
|
||||
export * from "./cart.js"
|
||||
export * from "./checkout.js"
|
||||
export * from "./concept.js"
|
||||
|
||||
@@ -171,6 +171,14 @@ export const server = [
|
||||
"title": "Use Cache Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/cache-service"
|
||||
},
|
||||
{
|
||||
"title": "Use Caching Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/caching-service"
|
||||
},
|
||||
{
|
||||
"title": "Create Caching Provider",
|
||||
"path": "https://docs.medusajs.com/resources/references/caching-module-provider"
|
||||
},
|
||||
{
|
||||
"title": "Use Event Module",
|
||||
"path": "https://docs.medusajs.com/resources/references/event-service"
|
||||
|
||||
Reference in New Issue
Block a user