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

Start free trial

Get Optimisation Status

litespeed/get-optimization-status reports what the optimisation pipeline has actually produced: whether minify, combine and defer are active for CSS and JS, and whether the generated assets exist on disk.

Configured and working are different things, and this is the call that tells them apart.

At a glance

Abilitylitespeed/get-optimization-status
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › CSS, JS & HTML
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

LiteSpeed generates combined and minified assets lazily, on the first request that needs them, and writes them to disk. So there is a window — after enabling the feature, after a purge, after a deployment that wiped the directory — where the settings say combine and no combined file exists.

During that window the site serves the original assets and looks exactly like a site with optimisation switched off. Reading the settings tells you nothing; reading the disk tells you everything.

The more persistent version of the same problem is a directory the web server cannot write to. LiteSpeed does not fail loudly for that — it falls back to serving the originals, quietly, forever.

So this is the call after enabling optimisation and the call when optimisation appears to have no effect. If assets exist on disk, the pipeline is working; if they do not, the question is why.

Input

This ability takes no input.

What comes back

NameTypeWhat it is
cssobjectWhether minify, combine and defer are active for CSS.
jsobjectThe same for JS.
generated_assetsobjectWhether generated files exist on disk, and how many.
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:

I turned on CSS combining but nothing changed — is it working?

It resolves to one call:

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

Worth knowing

  • Assets are generated lazily. Empty right after enabling is normal; empty a day later is not.
  • An unwritable directory makes LiteSpeed fall back silently.
  • This reads the disk; the settings read reads the configuration.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading