Search Cache CLI

Controlling the Ajax Search Pro cache via wordpress cli

Command synopsis

wp asp cache <clear|purge|info>

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

wp help asp cache

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.

Last updated