I am using php-fpm 7.4.3 on ubuntu 20.04. My blacklist of opcache doesn’t work at all. Scripts I visited are cached when file_cache is enabled. Here’s my configures. php.ini opcache_blacklist.txt test.php Some information from test.php There is a strange thing: everytime I refresh the test.php, blacklist_misses is increased by 1. If I disable file_cache (opcache.file_cache=) in php.ini, num_cached_scripts and num_cached_keys
Tag: opcache
Install php-opcache for PHP installed via Remi’s repository
I have an environment with the following setup: Centos/RHEL 8 PHP 7.4 installed from Remi’s repository I have set installed php like so: Now I want to install php-opcache. However dnf is reporting that there doesn’t appear to be a module php74-php-opcache. I’m fairly convinced this has something to do with how repos are set up, as on my dev
XDebug configured and installed but not working
I followed instructions how to install xdebug. So, I created file with phpinfo() function, that returns me php info. Then copied php info and used xdebug wizard: https://xdebug.org/wizard That returns …
How to precompile php opcache using command line?
I’m trying to warm up opcache via opcache.file_cache feature using console command. My opcache.ini: before I start my php-fpm process I compile files by executing scrpt from clommand line: This script generates compiled files to specified (/tmp/.opcache) directory. Then I start php-fpm process, but no precompiled cache is not used and opcache compiles cache every time php-fpm process being restarted.
Does PHP execute files from an include in a file I compile with opcache.opcache_compile_file()?
The [PHP documentation for opcache.opcache_compile_file says: This function compiles a PHP script and adds it to the opcode cache without executing it. If I compile a file using opcache_compile_file(), and that file includes other files (via include(), require(), etc.), will the files that are included be executed? Or will the included files just be compiled and added to the opcache?
How to determine if PHP OPcache is enabled or not?
I am trying to enable opCache on my server (ubuntu 12.04 LTS, running apache 2.4.7 with PHP Version 5.5.10-1+deb.sury.org~precise+1). Before starting to do anything, I read this highly relevant post which told me that opCache is disabled by default and I have to manually enable it. I went into php.ini and found that there is no text with opcache.so, also