Questions tagged [opcache]

OPcache is a PHP opcode cache introduced in PHP 5.5 (and is also available as a PECL extension for PHP 5.2+). It is based on the Zend Optimizer+

The Zend OPcache provides faster PHP execution through opcode caching and optimization. It improves PHP performance by storing precompiled script bytecode in the shared memory. This eliminates the stages of reading code from the disk and compiling it on future access. In addition, it applies a few bytecode optimization patterns that make code execution faster.

Also see the OpCache Readme, the PHP OPcache documentation and the PECL OPcache page.

304 questions
0
votes
1 answer

Enable OPcache on PHP Version 5.5.35

Operating system is Centos 6 w/ Apache 2.15, and PHP was installed using the following repository. [root@devserver drupal-8.1.1]# yum info php55u Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile * base:…
user1032531
  • 24,767
  • 68
  • 217
  • 387
0
votes
1 answer

wamp installation existing warning for opcache and enchant

I installed the wampserver2.5-Apache-2.4.9-Mysql-5.6.17-php5.5.12-64b.exe under windows 10. When i start up, i found that the plugin opcache and enchant existing warning flag. At the same time, I found there php error log: [18-Mar-2016 12:40:29…
Ming Yan
  • 1
  • 1
0
votes
1 answer

Enabling OPcache breaks APC when apc.serializer=default

I recently experienced something strange and I haven't been able to find any explanation when googling. Setup: We're using APC We're using APC (3.1.15-dev) as the 1st level user data cache for our PHP (v5.5.10) web app. APC opcode cache is…
jgivoni
  • 1,605
  • 1
  • 15
  • 24
0
votes
1 answer

wampserver - opcache not showing up in phpinfo()

Description I am trying to load php_opcache to accelerate my applications but can not seem to get it to show up in phpinfo on my wampserver. I have loaded mod_fcgi in apache httpd.conf and also the dll php_opcache as shown below under PHP…
Vahe
  • 1,699
  • 3
  • 25
  • 76
0
votes
1 answer

Opcache issue preventing drupal commons installation

I posted previously about problems associated with my attempt to install drupal commons on an Amazon cloud server. The installation failed because of two issues: 1) needed to increase PHP Max Execution Time to 120 and 2) OpCache is installed but is…
0
votes
1 answer

PHP 5.5.27 Opcache not working on Apache 2.4 CentOS 7

I've using PHP 5.5.27 installed on Apache 2.4 on CentOS 7. Opcache is showing on a phpinfo() page as: Opcode Caching: Disabled Yet below opcache.enable shows 'On'. I verified the proper php.ini is being used (/etc/php.d/opcache.ini) and it shows…
habiem
  • 51
  • 5
0
votes
1 answer

Symfony2: class to compile with OPcache

In Symfony2, in the extension file of a bundle, it is possible to call: $this->addClassesToCompile([class1, ....]) This adds the given files to the cached file classes.php => this can improve performances if we put here the most used classes,…
Rolintocour
  • 2,934
  • 4
  • 32
  • 63
0
votes
0 answers

How to use APC cache with doctrine2 after php version 5.4

I am using APC cache for doctrine2, configured while bootstrapping: $config = new \Doctrine\ORM\Configuration(); $cache = new…
Jaskaran Singh
  • 2,392
  • 24
  • 39
0
votes
0 answers

OpCache Zend understanding flush / restart

Iam using OpCache Zend I switched from APC. It's have been for me to understand why OPCache flush memory wheen it rise to end level. In logic memory should be filled and OpCache should hold it till Oom restart or Hash restarts occur. Right ? I have…
Cameleon
  • 59
  • 10
0
votes
1 answer

Enabling PHP OP Cache

Looking for some help to properlly enabled OP Cache. For some reason it won't cache files. Below is the php.ini configuration and below that is a screenshot of this:…
Chuck D
  • 1,718
  • 4
  • 19
  • 26
0
votes
0 answers

Opcache + Memcached Together

my environment ubuntu 14.04 , php 5.5 , nginx 1.76 i am using both opcache and xcache concurrently PHP 5.5.19-1+deb.sury.org~trusty+1 (cli) (built: Nov 19 2014 19:33:43) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c)…
Dev
  • 371
  • 1
  • 4
  • 19
0
votes
1 answer

what goes wrong with Opcahce and xcache

my environment ubuntu 14.04 , php 5.5 , nginx 1.76 i am using both opcache and xcache concurrently PHP 5.5.19-1+deb.sury.org~trusty+1 (cli) (built: Nov 19 2014 19:33:43) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.5.0, Copyright (c)…
Dev
  • 371
  • 1
  • 4
  • 19
0
votes
2 answers

opcache enabled, but why I don't see any difference

I have PHP 5.5 and opcache enabled My phpInfo shows this :…
user2986055
0
votes
1 answer

php environment OpCache not persistent in Plesk 12

After a few seconds any cached data in Zend OpCache and APCu is lost. Detail: 1. Got a Plesk 12.0.18 server running on CentOS with virtual hosts (Apache, nginx sandwich). 2. Compiled php 5.5.17 and 5.6.1 and installed according Plesk KB including…
kbi_user
  • 1
  • 2
0
votes
1 answer

Restart Specific Version of PHP/Apache?

I just installed PHP version 5.5 on my server (Centos 6 / Plesk 12) and changed the php version for one of my sites. I can see via a php info file that the site IS using the new PHP version, but I don't know how to start that VERSION of php. I made…
lance smith
  • 75
  • 3
  • 19