staticfilecache icon indicating copy to clipboard operation
staticfilecache copied to clipboard

Documentation: add hint about OPcache blacklist for PHP generator

Open wazum opened this issue 11 months ago • 1 comments

Feature Request

Is your feature request related to a problem? Please describe.

With Nginx and PHP OPcache active and the recommended setting for production environments opcache.validate_timestamps = 0, we encountered problems with the PHP generator (of course, in hindsight it is quite clear), which meant that changes were not delivered correctly.

Describe the solution you'd like

Add a hint in the documentation or FAQ.

If PHP OPcache is used and the recommended setting for production environments opcache.validate_timestamps = 0 is configured and the PHP generator is used (e.g. if Nginx is used), the directory for the static PHP files must be added to the OPcache blacklist.

opcache.blacklist_filename = /path/to/blacklist.txt

blacklist.txt

/absolute/path/to/typo3/web/typo3temp/assets/tx_staticfilecache/*

wazum avatar Jan 20 '25 09:01 wazum

Good point. We will add it to the documentation shortly.

lochmueller avatar Jan 20 '25 20:01 lochmueller