> For the complete documentation index, see [llms.txt](https://knowledgebase.ajaxsearchpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://knowledgebase.ajaxsearchpro.com/api/wp-cli-commands/search-cache-cli.md).

# Search Cache CLI

#### Command synopsis

```
wp asp cache <clear|purge|info>
```

To get all the parameters and flags directly in the command line run:

<pre><code><strong>wp help asp cache
</strong></code></pre>

#### Getting information about the cache

To display verbose information about the search cache run:

```
wp asp cache info
```

This will output cache hit/miss statistics and the total number of cached items.

#### Removing expired items from the cache

To clear the cache (aka. remove expired records), run the following command:

```
wp asp cache clear
```

This command will only delete items, which have been expired from the cache storage.

#### Removing all items from the cache (purge)

To purge the cache, run this command:

```
wp asp cache purge
```

This command will remove all items from cache, regardless of their expiration.
