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.
- Host: GitHub
- URL: https://github.com/anmolnagpal/opcache
- Owner: anmolnagpal
- Created: 2015-04-29T00:33:12.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-29T00:46:45.000Z (about 10 years ago)
- Last Synced: 2025-01-12T07:12:18.657Z (5 months ago)
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 – OpCacheWe 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