Skip to content

Purge cache through LiteSpeed action hooks - #34

Merged
alanw707 merged 1 commit into
mainfrom
fix/litespeed-purge-hooks-2026-11-24
Nov 24, 2026
Merged

alanw707 merged 1 commit into
mainfrom
fix/litespeed-purge-hooks-2026-11-24

Conversation

@alanw707

Copy link
Copy Markdown
Owner

car-accessories-online and mercedes-mansory still serve x-litespeed-cache: hit with max-age=604800 after two version bumps, while the same paths 301 with a cache-busting query. LiteSpeed_Cache_API::purge_all() does not exist on this install, so the existing purge block has been a no-op.

This switches to the documented actions — litespeed_purge_all plus litespeed_purge_url for each mapped source — and keeps the class call as a fallback.

The class API is absent on this install, so the purge silently no-opped and two
mapped URLs kept serving seven-day cached 200s. The documented actions
(litespeed_purge_all, litespeed_purge_url) now run first, with the class kept as
a fallback.
@alanw707
alanw707 merged commit c8fa402 into main Nov 24, 2026
7 checks passed
@alanw707
alanw707 deleted the fix/litespeed-purge-hooks-2026-11-24 branch November 24, 2026 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant