I'm currently using Plesk for a shared hosting server with the dedicated PHP-FPM handler per site.
This allows every site to have it's own Opcache, but this is also the issue...
Let's say there are 10 sites with 64 MB for Opcache, that's 640 MB in total!
Lot's of those sites don't get visited regularly, so the cache could be cleared after a while.
A solution could be to restart the PHP-FPM process for every site, but this will result in errors for visitors.
Another solution would be 1 PHP-FPM handler, but the cache will get filled by the big sites. This results in automatic Opcache restarts because the memory is full.
My question: is there a way to reset the cache periodically, or is there a way to clear the files from the cache when they haven't been access for let's say a week?
This allows every site to have it's own Opcache, but this is also the issue...
Let's say there are 10 sites with 64 MB for Opcache, that's 640 MB in total!
Lot's of those sites don't get visited regularly, so the cache could be cleared after a while.
A solution could be to restart the PHP-FPM process for every site, but this will result in errors for visitors.
Another solution would be 1 PHP-FPM handler, but the cache will get filled by the big sites. This results in automatic Opcache restarts because the memory is full.
My question: is there a way to reset the cache periodically, or is there a way to clear the files from the cache when they haven't been access for let's say a week?