Installing OPcache can improve your site’s performance by decreasing the php execution process when a script is requested. DreamHost permits a user to log into the server through secure shell with user level permissions.
What Is 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.
In short; It will improve php performance by skipping the read and compile steps.
The diagram below is a great visual representation. Once the php file is compile and stored in the memory, each concurrent request for that file is served from memory.
What if my files change?
When changes or updates are performed on your website, the cache will need to be reset. You can either kill the php service or reset the cache through the OPcache API. WordPress users can install the OPcache Dashboard plugin. The OPcache Dashboard plugin will handle resetting your OPcache when core, plugin, or theme files have been updated.
Installing OPcache on DreamHost for php 5.6 and greater
If you are using php 5.5 or greater, you do not need to compile the opcache module. You can simply append the opcache configuration in your phprc file to turn opcache on.
Append the following opcache configuration to your DreamHost phprc file to enable opcache.
Testing the install
To see if the module was installed correctly, you can run the following command. You should see the OPcache settings appear.
Install OPcache Dashboard
To reset the OPcache when WordPress has updates, I use the OPcache Dashboard plugin.