opcache Questions
1
I've been looking for some guidelines regarding the optimal value of opcache.jit_buffer_size. The proposed values are up to 256M (e.g. https://php.watch/versions/8.0/JIT#jit-opcache.jit_buffer_size...
Redhot asked 1/3, 2023 at 23:19
5
Solved
What does a \ do in PHP?
For example, CSRF4PHP has \FALSE, \session_id, and \Exception:
public function __construct($timeout=300, $acceptGet=\FALSE){
$this->timeout = $timeout;
if (\session_...
Slumberous asked 25/1, 2011 at 4:34
3
Solved
Trying to turn off caching in MAMP for development, waiting for cache to expire after making small changes is killing my productivity.
(Problem started when I changed to PHP 5.5.3, changing back do...
4
Solved
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 po...
2
Solved
I'm using the standard Apache and PHP 7.1 (not Homebrew) that comes with Mac High Sierra. However, it appears that this version doesn't have Opcache enabled even though it should come as standard w...
Longplaying asked 13/12, 2017 at 0:41
6
I am trying to enable Opcache, but for some reason, after editing my php.ini file and restarting apache (even rebooting the server), it still does not get enabled. Running a test I can see that tha...
1
I've had a problem since version 6
When we set this to opcache, it won't be saved on the next restart we see it says unsaved changes want to start? if you say yes it will still load opcache but as...
8
I've installed latest XAMPP server with PHP 7 (update: checked also PHP 7.1) (on my Windows 10 system). Wanted to use opcache, so I enabled it in php.ini.
[opcache]
zend_extension=php_opcache.dll...
4
Solved
I recently moved to PHP 5.4 and installed OPCache, it's very powerful!
How can I temporarily disable the cache?
I tried :
ini_set('opcache.enable', 0);
But it has no effect.
Thanks
1
I've installed OPCache GUI from GitHub and installed in my Mac. But when I run the page, it shows
The Zend OPcache extension is installed but not turned on
I've enabled the OPCache in my php....
2
Solved
I'd like to enable opcache preloading (RFC) on my production servers in PHP 7.4.
I'm using Symfony 4 if it changes anything.
Sn asked 12/12, 2019 at 7:58
4
If I'm setting this config in php.ini file:
opcache.revalidate_freq = 0
Will it still be better than disable Opcache system?
Because in my opinion, it will check for file updates every request,...
Applicative asked 9/9, 2014 at 14:27
1
Solved
The container is built from a trivial Dockerfile:
FROM php:7.2.19-fpm
RUN docker-php-ext-configure opcache --enable-opcache \
&& docker-php-ext-install opcache
I did not change php.ini...
4
Solved
I would like to use PHP 7. However there seems to be no option for key-value memory caching.
APC is discontinued.
XCache will not be available for PHP 7 for some time.
Is there an available al...
1
Solved
Maybe this is stupid question but i'm trying to figure out how does max_accelerated_files actually work...
I understand the "description/instructions" from PHP net
opcache.max_accelerated_files...
3
Solved
I am trying to reset PHP opcache after a symlink-style deployment. There is the opcache_reset.php file in my project which is executing by wget after the document root's symlink replacement:
<?...
Entity asked 19/5, 2014 at 12:21
1
I am using WAMP on Windows 10, running PHP 7.2 with Apache 2.4
When I am turning on OPcache, a page I am loading crashes with the following error in Chrome:
ERR_CONNECTION_RESET
I checked th...
1
Solved
i want use PHP OpCache as userland cache (like APCu, Redis, Memcache) as fallback where better caching solution aren't avaible.
The idea is store the data to cache into php files created at runtim...
1
I'm trying to set the variables to setup opcahe in my php.ini file.
phpinfo says:
Configuration File (php.ini)
Path /etc/php/7.0/fpm
Loaded Configuration File /etc/php/7.0/fpm/php.ini
Scan this ...
1
So, we have a Laravel 5.1 based project we want to release soon, but we're noticing poor performance, and we're trying to optimize the server setup.
As listed in the title, we're deploying this on...
1
Solved
Just what the subject says - when does PHP's opcache re-parse a file? Is it based on file timestamp, or file hash or what?
Edit: If my question is not clear then I'll try again:) Say a file "xyz.p...
5
Solved
Hopefully someone here knows a thing or 2 about this.
Short Question
I am running into an error using phpdoc on the command line, installed via pear on PHP 7.0.2. The error is:
#> phpdoc
PHP ...
Bellinger asked 23/1, 2016 at 0:46
1
PHP7 offers a bytecode caching mechanism called opcache. I'd like to know if there is any way to distribute and run the "opcached" version of a PHP script (.bin file extension) without distributing...
1
Solved
I recently upgraded to PHP 7.
I placed this in /etc/php.d/opcache.ini
opcache.file_cache = /var/www/html/.opcache
opcache.file_cache_only = 1
and created the directory (as root)
When I visit t...
1
Solved
I'm using PHP with OPcache. I only git-push to master to deploy my web site in production (not really, it's just after unit tests, but never mind). In php.ini file, OPcache settings are about "time...
Cystoscope asked 18/1, 2015 at 19:15
1 Next >
© 2022 - 2025 — McMap. All rights reserved.