|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2021-03-14 11:55 UTC] alex at ndros dot com
Description: ------------ Hi, We're using PHP 7.4.16 NTS with Opcache. We randomly get "class not found" errors with the software that we run (Xenforo 2.2). For example: Class 'XF\Mvc\Entity\Repository' not found This is solved after an IIS reset, but after a few minutes, we may get the same on another class not found error. Our Opcache config is: [OPCACHE] zend_extension = "php_opcache.dll" opcache.memory_consumption=256 opcache.cache_id=node1 opcache.error_log="D:\temp\php\opcache.log" opcache.validate_timestamps=1 opcache.revalidate_freq=30 opcache.interned_strings_buffer=32 opcache.save_comments=0 opcache.max_file_size=0 opcache.file_update_protection=2 ;opcache.file_cache_consistency_checks=0 // not used ;opcache.file_cache="D:\temp\php\opcache_filecache" // not used opcache.max_accelerated_files=10000 opcache.log_verbosity_level=4 opcache.blacklist_filename= "D:\inetpub\wwwroot\******.com\conf\opcache\opcache-blacklist.txt" opcache.enable_cli=1 opcache.max_wasted_percentage=10 Thank you Alex Test script: --------------- We haven't found a specific way to reproduce the issue. Expected result: ---------------- We haven't found a specific way to reproduce the issue. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
> We do use 2 worker processes for the IIS application pool. We > did try to use just 1, but the error happens with this > configuration as well. Nonetheless, please try opcache.cache_id=${APP_POOL_ID} and use separate application pools for different applications.ah nice, I didn't know I could use an environment var in php.ini we've done: opcache.cache_id=${APP_POOL_ID} and also running different application pool for each app (joomla, xenforo). I will report if this solves our problem. Thanks !