30 days free. No credit card. Full access from the moment you connect your site.

Start free trial

Get Object Cache Status

litespeed/get-object-cache-status reports whether the object cache is enabled, which backend it targets, its host and port, and whether LiteSpeed’s drop-in file is actually installed.

Configured and working are different things, and the drop-in is where they part company.

At a glance

Abilitylitespeed/get-object-cache-status
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › Object & Browser Cache
RequiresLiteSpeed Cache, active on the site
Capabilitymanage_options
SafetyRead-only — changes nothing
RepeatableIdempotent — running it twice leaves the same result
Ships inAcrossAI Abilities Manager 0.0.34 and later

How it works

WordPress uses an object cache only if a file called object-cache.php exists in the content directory. LiteSpeed writes one when you enable the feature — unless the directory is not writable, or another caching plugin already put its own there, or a deployment process overwrites the directory on every release.

In any of those cases the setting says enabled, the backend is configured correctly, and WordPress is using its default in-memory cache that lasts one request. The site is exactly as slow as it was before, and nothing reports a problem.

So this reports the drop-in separately from the setting. The two together are the answer; either alone is not.

A misconfigured backend produces the same silence in a different way: WordPress falls back to the database rather than failing, and the only symptom is that the site is slow. litespeed/test-object-cache-connection is the call that actually opens the connection.

Input

This ability takes no input.

What comes back

NameTypeWhat it is
enabledbooleanWhether the object cache is switched on.
backendstringWhich backend is configured.
hoststringThe configured host.
portintegerThe configured port.
dropin_installedbooleanWhether object-cache.php is actually in place.
successbooleanWhether the call completed.
messagestringA one-line summary of what happened, suitable for showing a human.
error_codestringPresent only on failure — a stable machine-readable reason, such as a missing field, a wrong field type or an unmet confirmation.

Example

Ask your assistant:

Is the object cache actually working on this site?

It resolves to one call:

{
  "ability": "litespeed/get-object-cache-status",
  "parameters": {}
}

Worth knowing

  • Enabled without the drop-in means nothing is being cached.
  • A deployment process that replaces the content directory can remove the drop-in silently.
  • This reports configuration and the drop-in; the connection test proves the backend.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading