atomicptr/lscache

This package is abandoned and no longer maintained. No replacement package was suggested.
There is no license information available for the latest version (v1.2.0) of this package.

LiteSpeed Cache extension for TYPO3.

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v1.2.0 2019-09-02 13:50 UTC

This package is auto-updated.

Last update: 2022-04-05 17:57:35 UTC


README

LiteSpeed Cache extension for TYPO3.

Install via composer

$ composer require atomicptr/lscache

Configuration

Put this inside your .htaccess

<IfModule LiteSpeed>
  CacheLookup public on
</IfModule>

Signals & Slots

This extension has a few slots you can connect to:

Class: \Atomicptr\Lscache\Service\LscacheService

cacheResponseHeaders

<?php
// ...
class CacheResponseHeaderSlot {
    public function handle(LscacheService $lscacheService) {
        $lscacheService->headers = []; // remove headers
    }
}

cacheTags

<?php
// ...
class CacheTagsSlot {
    public function handle(TypoScriptFrontendController $tsfe, LscacheService $lscacheService) {
        $lscacheService->cacheTags[] = "my_fancy_cachetag";
    }
}

cacheVariations

<?php
// ...
class CacheVariationsSlot {
    public function handle(TypoScriptFrontendController $tsfe, LscacheService $lscacheService) {
        $lscacheService->cacheVariations[] = "cookie=my_variation_cookie";
    }
}

beforePurge

<?php
// ...
class BeforePurgeSlot {
    public function handle(string $purgeIdentifier, LscacheService $lscacheService) {
        if ($purgeIdentifier === "*") {
            // Don't allow to purge everything (for some reason)
            $lscacheService->canPurge = false;
        }
    }
}

License

MPL v2