I'm using PHP-FPM 5.6 version.
php -v shows there's OPcache in place.
I have a PHP script that's accepting parameters and giving me same 2.2k HTML output all the time.
The script execution does not involve any connectivity to MySQL.
In Chrome Developer Tools, I'm seeing an execution time of 900ms.
I find that this is relatively slow.
I would like to shorten this execution time.
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?
Or if there's an alternative approach?
Any configuration to be tweaked in php.ini, /etc/php.d/10-opcache.ini or /etc/php-fpm.d/www.conf?
And how do I purge the cached result when needed?
Aucun commentaire:
Enregistrer un commentaire