> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/site/viewer/cache/introduction.md

## Article Content:

# About the Cache API
[Caching](https://dev.wix.com/docs/develop-websites/articles/best-practices/caching/about-caching.md) allows you to temporarily store the return values of site web method calls and successful router calls on Wix's infrastructure. This provides quicker access to data and improves site performance. While caching is effective, it’s important to invalidate caches when necessary to ensure that your site's data always remains up to date. This helps preserve accuracy and prevents site visitors from seeing outdated content.

The Cache API provides functionality for invalidating site [web method](https://dev.wix.com/docs/sdk/core-modules/web-methods/introduction.md) and [router](https://dev.wix.com/docs/velo/events-service-plugins/routers/service-plugins/wix-router/ok.md) caches. Note that app web methods cannot cache their responses. 

Consider invalidating your caches when there are significant changes to your site's content. For example, if a product on your e-commerce site becomes out of stock, you should invalidate the cache of the web method that retrieves and displays the product, ensuring that visitors see the most current status. 

Learn more about [caching](https://dev.wix.com/docs/develop-websites/articles/best-practices/caching/about-caching.md).


## Before you begin
It's important to note the following before you begin to code: 
- This API is only supported for developing sites. 
- This API works only when used together with the Web Methods or Router APIs. 
- You can only use this API to invalidate caches that were previously defined with tags. 
- A cache is automatically invalidated when: 
  - The cache's time to live (TTL) expires.
  - You republish your site with a code change. 


## Terminology
- **Cache:** Return value data that is temporarily stored on Wix's infrastructure. 
- **Tag:** Used to identify which caches to invalidate.