> For the complete documentation index, see [llms.txt](https://docs.hostinger.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities/litespeed-cache.md).

# LiteSpeed Cache

LiteSpeed Cache abilities of the Hostinger AI plugin's WordPress site MCP server. Read LiteSpeed Cache settings, apply a preset, and purge the cache.

Read LiteSpeed Cache settings, apply a preset, and purge the cache.

> **Note:** These abilities run inside your site through the [WordPress site MCP server](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/mcp-server.md). The Hostinger API can do some of the same from your hosting account, even while the site is down — see the [LiteSpeed cache endpoints](https://docs.hostinger.com/api-reference/endpoints/wordpress/litespeed-cache.md).

**Available:** Only while LiteSpeed Cache is active on the site.

| Ability                                                       | What it does                                                                                                                                                                                                | Type                            |
| ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| [Flush LiteSpeed Cache](#flush-litespeed-cache)               | Purge all LiteSpeed caches: page cache, CSS/JS, localized resources, object cache and opcache.                                                                                                              | **Destructive** · Safe to retry |
| [Apply LiteSpeed Cache Preset](#apply-litespeed-cache-preset) | Apply a predefined optimization preset to LiteSpeed Cache: basic (minimal optimization), advanced (balanced), aggressive (more optimization), essentials (core features) or extreme (maximum optimization). | **Destructive**                 |
| [List LiteSpeed Cache Presets](#list-litespeed-cache-presets) | List the LiteSpeed Cache optimization presets with their descriptions, features, risk levels and requirements.                                                                                              | Read-only                       |
| [Get LiteSpeed Cache Settings](#get-litespeed-cache-settings) | Get the LiteSpeed Cache settings, including the active preset, cache status and key options.                                                                                                                | Read-only                       |

## Flush LiteSpeed Cache

`hostinger-ai/litespeed-cache-flush` · **Destructive** · Safe to retry

Purge all LiteSpeed caches: page cache, CSS/JS, localized resources, object cache and opcache.

No parameters.

<details>

<summary>Description sent to AI tools</summary>

> Purge all LiteSpeed caches: page cache, CSS/JS, localized resources, object cache and opcache. Use when changes do not show on the live site, or after changing content, design or settings.

</details>

## Apply LiteSpeed Cache Preset

`hostinger-ai/litespeed-cache-presets-apply` · **Destructive**

Apply a predefined optimization preset to LiteSpeed Cache: basic (minimal optimization), advanced (balanced), aggressive (more optimization), essentials (core features) or extreme (maximum optimization).

| Required parameter | Type                                                              | Description         |
| ------------------ | ----------------------------------------------------------------- | ------------------- |
| `preset`           | one of `basic`, `advanced`, `aggressive`, `essentials`, `extreme` | The preset to apply |

<details>

<summary>Description sent to AI tools</summary>

> Apply a predefined optimization preset to LiteSpeed Cache: basic (minimal optimization), advanced (balanced), aggressive (more optimization), essentials (core features) or extreme (maximum optimization). A backup of the current settings is created automatically. Use when asked to speed up the site or change how aggressively it is optimized. Needs `preset` from `hostinger-ai/litespeed-cache-presets-list`.

</details>

## List LiteSpeed Cache Presets

`hostinger-ai/litespeed-cache-presets-list` · Read-only

List the LiteSpeed Cache optimization presets with their descriptions, features, risk levels and requirements.

No parameters.

<details>

<summary>Description sent to AI tools</summary>

> List the LiteSpeed Cache optimization presets with their descriptions, features, risk levels and requirements. Use when choosing which preset to apply.

</details>

## Get LiteSpeed Cache Settings

`hostinger-ai/litespeed-cache-settings-get` · Read-only

Get the LiteSpeed Cache settings, including the active preset, cache status and key options.

No parameters.

<details>

<summary>Description sent to AI tools</summary>

> Get the LiteSpeed Cache settings, including the active preset, cache status and key options. Use when you need to check how caching is configured.

</details>

## Related

* [Abilities Reference](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/abilities.md)
* [WordPress Site MCP Server](https://docs.hostinger.com/wordpress/hostinger-plugins/ai-plugin/mcp-server.md)
