Extended
Events
There are several Events to extend the functionality of EXT:staticfilecache. The following list contains all events and a short description of the execution.
SFCStaticfilecacheExecuted in the client build process to modify options of the HTTP client for the boost mode queue.Event Build Client Event SFCStaticfilecacheExecuted in the identifier build process to control the target path of the cache entry.Event Build Identifier Event SFCStaticfilecacheExecuted in the PrepareMiddleware to check if the current page is static cacheable.Event Cache Rule Event SFCStaticfilecacheExecuted in the FallbackMiddleware to check if the current page is delivered via FallbackMiddleware.Event Cache Rule Fallback Event SFCStaticfilecacheExecuted in the ForceStaticCacheListener to force the generation of static file cache files.Event Force Static File Cache Event SFCStaticfilecacheExecuted in the ConfigGenerator do modify the stored data.Event Generator Config Manipulation Event SFCStaticfilecacheExecuted from all content related Generator to modify the content in front of the storage.Event Generator Content Manipulation Event SFCStaticfilecacheExecuted to trigger the Generators to store static files.Event Generator Create SFCStaticfilecacheExecuted to trigger the Generators to remove static files.Event Generator Remove SFCStaticfilecacheExecuted in the HttpPushService to handle different types of push handlers.Event Http Push Header Event SFCStaticfilecacheExecuted in the GenerateMiddleware in front of the business logic of the middleware.Event Pre Generate Event
Middleware
The EXT:staticfilecache uses middlewares to implement the logic of the cache into the core. These middlewares are easily to extend/replace. The following list describe the different middlewares:
SFCStaticfilecacheCheck if there is a frontend cookie and invalid user session. Then remove the cookie.Middleware Cookie Check Middleware SFCStaticfilecacheHandle the fallback, if there is a static file but no redirect via nginx/htaccess.Middleware Fallback Middleware SFCStaticfilecachePreparation for new caching mechanisms of TYPO3 v13 (currently disabled).Middleware Frontend Cache Middleware SFCStaticfilecacheHandle the user session in the right way.Middleware Frontend User Middleware SFCStaticfilecacheWrite the content into the StaticFileCache structure.Middleware Generate Middleware SFCStaticfilecacheCheck if the content is cacheable in the StaticFileCache structure.Middleware Prepare Middleware