Issue Bug Closed

#90838Errors when opcache_invalidate or opcache_reset are disabled for security reasons

Tobias Grave 03/26/20, 11:19 updated 04/01/20, 21:15

Description

Some webhosting providers disable OpCache related PHP functions (opcache_invalidate, opcache_reset, opcache_get_status, …) for security reasons, beacause the in memory cache is usually shared among multiple users on the same webserver when PHP-FPM is used.

If opcache_invalidate or opcache_reset are disabled, Typo3 will show an error message.

Both functions are only used in typo3/sysext/core/Classes/Service/OpcodeCacheService.php, maybe a check can be added if opcache_invalidate and opcache_reset are disabled or simply the error control operator @.

Reviews 2