-
-
Notifications
You must be signed in to change notification settings - Fork 72
Description
Bug Report
Current Behavior
I noticed some issues with MySQL (MariaDB) dead-locks and found that StaticFileCache is possiby causing them in this line:
| $this->cache->set($uri, $response, (array) $response->getHeader('X-SFC-Tags'), $lifetime); |
StaticFileCache will even fire cache-entries with cache-lifetime 0 to database, which (as far as I see) is not required and may cause load on MySQL server for pages that have cache-restrictions preventing caching of the page.
Expected behavior/output
StaticFileCache should only cache / generate cache database entries
Environment
- TYPO3 version(s): 11.5
- staticfilecache version: 13.1
- Is your TYPO3 installation set up with Composer (Composer Mode): yes
- OS: Ubuntu Linux
Possible Solution
I made an extension extending staticfilecache GenerateMiddleware.php to test my own approach to solve this.
see: https://gitlab.com/typoworx-gmbh/typo3/extensions/typo3-staticfilecache-extender/-/blob/main/Classes/Http/Middleware/GenerateMiddleware.php?ref_type=heads
Additional context
--/--