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

Start free trial

Apply A Configuration Preset

litespeed/apply-preset replaces the whole LiteSpeed configuration with one of five shipped presets: essentials, basic, advanced, aggressive or extreme — weakest to strongest.

LiteSpeed takes an automatic backup first, which is what makes this recoverable and why it confirms rather than being marked destructive.

At a glance

Abilitylitespeed/apply-preset
ToolsetLiteSpeed Cache — toolset/litespeed
GroupLiteSpeed Cache › Toolbox
RequiresLiteSpeed Cache, active on the site
Capabilitymanage_options
SafetyWrites data
RepeatableNot idempotent — each call changes the row set, so re-running is not a no-op
Ships inAcrossAI Abilities Manager 0.0.34 and later

It replaces everything

This replaces the entire configuration, not part of it. Every exclusion somebody added after a script broke, every tuning decision, every setting adjusted over years — all of it is replaced by the preset’s values. LiteSpeed takes an automatic backup first and litespeed/restore-preset-backup rolls back to it, which is the only reason this is recoverable. Anything above advanced changes front-end rendering and must be tested immediately.

Choosing a level

The presets are cumulative in aggression. Essentials turns on caching and little else. Basic adds the safe optimisation. Advanced adds the combination and deferral settings that usually work. Aggressive and extreme add the ones that usually need exclusions.

Everything from advanced upward changes how the front end renders, which means the only sensible way to apply one is to look at the site immediately afterwards — the home page, a post, a form, anything with a slider, and the checkout if there is one.

The automatic backup is the safety net and it is worth confirming it exists before you need it. litespeed/list-preset-backups shows what you can roll back to, and reading it before applying rather than after is the difference between a quick recovery and a bad afternoon.

A preset is a starting point, not a destination. The exclusions a site needs are specific to its theme and plugins, and no preset can know them — so the normal sequence is apply, test, then add exclusions for whatever broke.

Input

NameTypeRequiredWhat it is
presetstringYesessentials, basic, advanced, aggressive or extreme.
confirmbooleanYes — must be trueThe irreversibility gate. Without it the call is refused before anything is touched.

What comes back

NameTypeWhat it is
presetstringThe preset applied.
backupstringThe timestamp of the automatic backup taken first.
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:

Set LiteSpeed up with the recommended settings.

It resolves to one call:

{
  "ability": "litespeed/apply-preset",
  "parameters": {
    "preset": "advanced",
    "confirm": true
  }
}

Worth knowing

  • Replaces the entire configuration, including every exclusion.
  • Anything above advanced changes rendering. Test the front end straight away.
  • Note the backup timestamp in the response — it is your way back.
  • Expect to add exclusions afterwards. No preset knows your theme.

Related abilities


Get the plugins:
AcrossAI Abilities Manager · AcrossAI MCP Manager

Browse the rest: Every ability, by category


Keep reading