php-fpm opcache

Discussion in 'Installation/Configuration' started by nhybgtvfr, Apr 7, 2020.

  1. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    hi,

    just wondering, if I place some code like below into the custom php ini settings part of a sites options tab, does that create a new cache area solely to this site/php-fpm pool, or does it just enable access to a single cache that all sites with the opcache enabled will use? or can I only enable this in the actual /etc/php/7.*/fpm/php.ini file?

    Code:
    opcache.enable=1
    opcache.memory_consumption=128
    opcache.interned_strings_buffer=8
    opcache.max_accelerated_files=10000
    opcache.revalidate_freq=1
     
  2. Steini86

    Steini86 Active Member

    All websites that use the same php version share the same opcache.
    You can install the opcache control panel (single php file) in your web and see the cached files:
    https://gist.github.com/ck-on/4959032
     
    Jesse Norell likes this.

Share This Page