How to accelerate PHP execution by using cached result? <p>I'm using PHP-FPM 5.6 version.</p> <p>php -v shows there's OPcache in place.</p> <p>I have a PHP script that's accepting parameters and giving me same <code>2.2k</code> HTML output all the time.</p> <p>The script execution does not involve any connectivity to MySQL.</p> <p>In Chrome Developer Tools, I'm seeing an execution time of <code>900ms</code>.</p> <p>I find that this is relatively slow.</p> <p>I would like to shorten this execution time.</p> <p>Given that OPcache is in place with this version of PHP, can I use it to cache the result of my PHP script execution for a faster response time?</p> <p>Or if there's an alternative approach?</p> <p>Any configuration to be tweaked in <code>php.ini</code>, <code>/etc/php.d/10-opcache.ini</code> or <code>/etc/php-fpm.d/www.conf</code>?</p> <p>And how do I purge the cached result when needed?</p>