You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With the use of frameworks like Symphony, and the use of composer, many PHP apps are literally more than 10,000 php files like Drupal 8 which is based on Symphony.
I understand that OpCache does not want to implement any kind of automatic eviction algorithms. That said, adding a function like:
bool opcache_invalidate ( string $script )
Would allow eviction to be self-managed. There might be some architectural reason something like this does not already exist, but if there is not I would very much like to be able to throw scripts out of cache to make room for more recently used scripts.
Thanks for consideration.
The text was updated successfully, but these errors were encountered:
This is technically impossible within the current architecture. The only way to actually free up space (in a way that allows it to be reused) is through an opcache restart.
With the use of frameworks like Symphony, and the use of composer, many PHP apps are literally more than 10,000 php files like Drupal 8 which is based on Symphony.
I understand that OpCache does not want to implement any kind of automatic eviction algorithms. That said, adding a function like:
bool opcache_invalidate ( string $script )
Would allow eviction to be self-managed. There might be some architectural reason something like this does not already exist, but if there is not I would very much like to be able to throw scripts out of cache to make room for more recently used scripts.
Thanks for consideration.
The text was updated successfully, but these errors were encountered: