An open API service indexing awesome lists of open source software.

https://github.com/anmolnagpal/opcache

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.
https://github.com/anmolnagpal/opcache

Last synced: 3 months ago
JSON representation

OPcache improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request.

Awesome Lists containing this project

README

        

**NOTE:**
OpCache settings for Magento on PHP 5.5.14 (Production Environment). Store/Update this file as /etc/php.d/opcache.ini
**Installation**
```
yum install php-pecl-zendopcache
```
**Note:** In PHP version 5.5 it comes with a caching engine built-in – OpCache

We can **rest OpCache** via following method's:

1. Width validate_timestamps disabled, you must reset the OpCache manually or restart Apache for changes to the filesystem to take effect.

2. After each code deployment you can login to the Magento admin and goto the OpCache control panel and hit reset cache.

3. Use the command line reset by curling a page with something like this
```
reset();
if ($result === TRUE) {
echo 'Reset cache successful!';
} else {
echo 'Reset cache failed!';
}
?>
```

**Note:** for above to work you need this extension:
https://github.com/SchumacherFM/Magento-OpCache