Mapping base of shared memory segments (for Windows only). Allows calling OPcache API functions only from PHP scripts which path is Protect the shared memory from unexpected writing during script execution. You can also enable warnings (level 2), info messages (level 3) or By default, only fatal errors (level 0) or errors (level 1) are logged. All OPcache errors go to the Web server log. How long to wait (in seconds) for a scheduled restart to begin if the cache The default value of "0" means that the checks are disabled. Check the cache checksum each N requests. Allows exclusion of large files from being cached. Line starting with a are ignored (comments). (i.e., /var/www/x blacklists all the files and directories in /var/www
The filename may be a full path or just a file prefix Each OPcache blacklist file is a text file that holds the names of files
The location of the OPcache blacklist file (wildcards allowed). A bitmask, where each bit enables or disables the appropriate OPcache Allow file existence override (file_exists, etc.) performance feature.
If disabled, all PHPDoc comments are dropped from the code to reduce the Enables or disables file search in include_path optimization webserver for changes to the filesystem to take effect. When disabled, you must reset the OPcache manually or restart the performance, but may break existing applications. directory to the script key, thus eliminating possible collisions between When this directive is enabled, the OPcache appends the current working The maximum percentage of "wasted" memory until a restart is scheduled. Open php.ini and Add to resolve drupal installation issueģ.Re-Start Apache Here is the sample code: To enable the extension:ġ.Open the file with editor: c:\xampp\php\php.iniĤ. XAMPP comes with PHP OPCache we just need to enable it. The following settings are generally recommended as providing good performance: mory_consumption=128 NOTE: The ellipsis in the above represent unchanged code omitted for compactness. Zend_extension = "C:\xampp\php\ext\php_opcache.dll" I added it at the end of the "Paths and Directories" subsection of that PHP section: If enabled, a fast shutdown sequence is used for the accelerated codeĪnd, I added the zend_extension reference to the PHP.ini file section - important to add it in this section. ("1" means validate once per second, but only How often (in seconds) to check file timestamps for changes to the shared The maximum number of keys (scripts) in the OPcache hash table. The amount of memory for interned strings in Mbytes. Determines if Zend OPCache is enabled for the CLI version of PHP For good measure, I increased limits for a few options in this subsection, per the other suggested OPCache configuration website. But, you do have to enable it - it is off by default, and add the zend_extension URL reference (see note below). This XAMPP installation already includes the section in PHP.ini file, as described in first comment here: (about configuring OPCache).