Questions tagged [opcache]

25 questions
10
votes
1 answer

How to forcibly completely clear PHP7 opcache?

The opcache on my webserver keeps hitting the limit I have set even though I feel like I don't have that much PHP code and it really ought to be enough room. This is compounded by the fact that even when clearing the opcache, it immediately shows…
Andrew Stine
  • 101
  • 1
  • 1
  • 4
5
votes
1 answer

Php 7 opcache v php 5.6 xcache

We're provisioning a new server and are deciding between (php7 / opcache) and (php5.6 / xcache). We run a few chunky ecommerce sites and want the best possible performance. I'm looking for comparative results between the two, but cant find any…
Tim
  • 53
  • 1
  • 4
4
votes
1 answer

IIS 8 with PHP 5.6: WinCache VS Zend Op Cache

Zend Op Cache is compiled by default on PHP5.5+, but IIS encourages use of WinCache for opcode caching. what is the extension that will give me the best performance and stability on IIS? there are benchmarks, case studies?
Simone Nigro
  • 375
  • 2
  • 3
  • 17
4
votes
2 answers

PHP OPcache is resetting cache automatically

I started using the built-in PHP OPcache of PHP 5.6 and am facing a problem now. I set it up to use up to 1 GB of RAM, which is highly enough for my websites but it never get get it to use the full 1 GB of RAM. The cache is cleared many times before…
KittMedia
  • 238
  • 3
  • 11
2
votes
0 answers

Is it possible to use Opcache to specific website only?

I run few wordpress websites on single Vps server. (Ubuntu 18.04 + Nginx + php7.3 + mariadb) I was changed code like below to use opcache in…
Seomari
  • 21
  • 1
2
votes
1 answer

php-fpm generated a lot of load when resetting opcache, rendering server unresponsive

In recent weeks we experienced a negative phenomenon when deploying code: the server becomes unresponsive sometimes for a few minutes. Here's an example of the load on the server when this happened: The only related log I can find is from…
mark
  • 1,516
  • 4
  • 21
  • 33
2
votes
1 answer

OPcache cache same file for different users only once

Is there some way to make OPcache use a hash or target a specific directory on each domain to disable use_pwd so it won't cache the same packages over and over? By default OPcache appends the working directory to the script key to prevent…
2
votes
1 answer

PHP Application with Web Root on Amazon EFS using up too much EFS bandwidth

The web root /var/www/html is mounted on EFS Mounting with usual AWS advised command and General Purpose EFS sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-name.efs.eu-west-1.amazonaws.com:/ html The system…
Pasta
  • 292
  • 1
  • 12
2
votes
2 answers

How to let opcache work correctly under chroot?

There is php-fpm and opcache (downloaded and compiled from php.net) opcache.enable = 1 opcache.use_cwd = 1 zend_extension=opcache.so php-fpm profiles run in chroot, i.e. /home/user1/www/index.php -> /www/index.php, /home/user2/www/index.php ->…
nikitasius
  • 23
  • 3
2
votes
0 answers

How does apache2.4 maintains php7.0 opcache in prefork model

Does each apache2.4 child processes maintain their own opcache or is there a global opcache shared by all children?
kalyan
  • 229
  • 1
  • 2
  • 11
2
votes
1 answer

What causes Opcache to manually restart

I've setup opcache with php-fpm but for some reason, it keeps manually restarting. I've not actioned a restart and I've set the force restart timeout to 2700 seconds (2 hours) so the cache shouldn't get cleared. What causes a manual…
James
  • 173
  • 4
1
vote
1 answer

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is working as expected. I also checked that php settings…
oivlis111
  • 21
  • 4
1
vote
1 answer

Bad response when try install opcache

I have problem for install zendopcache I try 1 time and other and always have the same result i don´t know what it´s bad because this can install with php 5.6 , thanks and also i delete and clean yum etc and the same response > [root@cp ~]# yum…
Jos
  • 31
  • 1
1
vote
1 answer

Opcache not working properly

I got problem with Opcache. It's not working as I wish/desire.. This is my opcache configuration cat /etc/php/7.1/apache2/php.ini | grep opcache [opcache] opcache.enable = 1 opcache.enable_cli = 1 opcache.memory_consumption =…
Valor_
  • 125
  • 1
  • 8
1
vote
1 answer

How to flush PHP-FPM OpCache on an autoscaling PHP cluster?

On our current monolithic LAMP servers we deploy via Capistrano and reload PHP-FPM at the end of a deployment, in order to flush the Opcode Cache. Now, we're building a new webhosting cluster on AWS for dozens of PHP 7.0 and PHP 5.5 applications.…
Martijn Heemels
  • 7,438
  • 6
  • 39
  • 62
1
2