cold-egg / lscache-typo3
LiteSpeed Cache integration for TYPO3
Package info
github.com/Code-Egg/lscache-typo3
Type:typo3-cms-extension
pkg:composer/cold-egg/lscache-typo3
1.0.1
2026-03-13 07:09 UTC
Requires
- php: ^8.1
- typo3/cms-core: >=12.4
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
LiteSpeed Cache integration for TYPO3.
This extension emits LiteSpeed Cache response headers for frontend requests and automatically purges LSCache when TYPO3 caches are flushed.
Features
- Adds
X-LiteSpeed-Cache-Controlbased on TYPO3 cacheability. - Adds
X-LiteSpeed-Tagderived from TYPO3 cache tags (plus page and site tags). - Adds
X-LiteSpeed-Varyfor cookie-based variations. - Purges LSCache automatically on TYPO3 cache flush events.
- Purges LSCache for specific pages when TYPO3 clears a page cache.
Requirements
- TYPO3 12.4+
- PHP 8.1+
- OpenLiteSpeed or LiteSpeed Web Server with LSCache enabled
Installation
composer require cold-egg/lscache-typo3
Activate the extension in the TYPO3 Extension Manager.
Configuration
Go to Admin Panel → Settings → Extension Configuration → lscache.
| Setting | Default | Description |
|---|---|---|
enabled |
1 |
Enable/disable all LSCache headers |
cacheControl |
public |
Cache-Control mode for anonymous users (public|private) |
defaultMaxAge |
3600 |
Fallback max-age in seconds when TYPO3 provides no lifetime |
loggedInBehavior |
no-cache |
Behavior for logged-in frontend users (no-cache|private) |
tagPrivateResponses |
0 |
Whether to add tags to private responses |
addPageIdTag |
1 |
Add a t3_page_X tag to every cached response |
tagPrefix |
t3 |
Prefix applied to all cache tags |
extraTags |
(empty) | Additional tags to emit on every response (comma-separated) |
maxTags |
100 |
Maximum number of tags per response |
maxHeaderLength |
4096 |
Maximum byte length of the X-LiteSpeed-Tag header |
varyCookies |
(empty) | Cookies to vary on (comma-separated) |
Web Server
Ensure LSCache is enabled for the site. Example (virtual host or .htaccess):
CacheLookup public on