I am developing a website using PHP and I want to store data on my user/browser's cache so I can keep the data through PHP pages without moving it all the time through GET or POST. I have used APC and ...
Inside a server-side PHP script, called via an AJAX Request #1, I'm requiring a PHP script A, by using the require statement.
On the page on from which that AJAX Request #1 can be fired, I also ...
After creating .theme file in my template folder (whether empty or not), I get the following error message:
The website encountered an unexpected error. Please try again later.RuntimeException: ...
I have read a lot regarding Opcache and how it helps speed up PHP code either in Worpdress, standalone PHP scripts and even in conjunction.
What if one page is used to generate different content for ...
I'm using Apache/2.4.29 with PHP 7.4.5 as module.
Apache and PHP are configured with lito as user.
Virtualhost configuration with PHP settings:
php_admin_value opcache.enabled 1
I'd like to modify opcache.interned_strings_buffer to 12 via .htaccess file
I've added the following block to .htaccess:
php_value opcache.interned_strings_buffer 12
php_value max_execution_time 180
I have a Laravel project that has been deployed with Forge and had OPCache enabled using Forge. I noticed last week that when I pushed some changes, the changes that were in the views and in the ...
I have a problem with OpCache.
A former developer coded a website using APC for cache, but the new hosting/webserver uses only OpCache.
So, we have to switch from APC to Op, but none of us know ...
I enabled opcache with php 7.2 on my WHM/cPanel VPS server but the changes that I made on php.ini file doesn't update, every value stills as default ¿How can I update it?
I tried to use the php 7.4 new feature opcache.preload in wamp server. But apache could not start. I did check apache error log, php error and windows event log for useful error but I did not see any ...
I'm currently using nginx, php7.4-fpm (php7.4.2) and symfony5.
I tried to enable php7.4 preload feature I'm getting fpm error.
*1 recv() failed (104: Connection reset by peer) while reading response ...
I've modified the php.ini file to enable opcode caching and restarted apache but it is nowhere in sight with phpinfo(). php -v says:
PHP 7.4.1 (cli) (built: Dec 18 2019 14:46:18) ( NTS )
I found the documentation of PHP regarding opcache to be very minor, partly barely scratching the topic.
Even worse, when it comes to CLI there is no documentation at all.
Since PHP 7 the opcache ...
I'm upgrading to php7.4 and want to take advantage of the new opcache preloading.
When I service php7.4-fpm start I get the following errors:
NOTICE: PHP message: PHP Warning: PHP Startup: failed ...
I'm facing a problem that considerably slow down my development workflow.
I updated my server to PHP 7.2 few days ago, and now, everytime I upload a PHP file, I have to wait 30sec to 1min to see the ...
I'd like to enable opcache preloading (RFC) on my production servers using PHP 7.4. I'm using Symfony, but this applies to all of PHP.
CMS's like Drupal 8 strongly recommend that you enable OPcache on your server to speed up page rendering. How does one install this extension if your site is hosted on Media Temple's shared Grid ...
I have setup the new Docker container with image "FROM php:7.3-apache-stretch" and trying to install 'Opcache' into it but fails.
PHP Version: 7.3.11
Apache Version: Apache/2.4.25 (...
I searched a lot from the internet but did not find a solution.
I want to define interbase/Firebird in php. (extention) to connect to firebird servers.
but php extension 'interbase' is not loaded.
Below numbers are static. They don't change. I am running magento 2 with PHP 7.3. Is opcache working?
Opcode Caching => Up and Running
Optimization => Enabled
SHM Cache => Enabled
File Cache ...
Can anybody help me to understand, why the opcache_get_status is defined as disabled function in PLESK.
Many thanks in advance.
Anybody help? When I enable opcache, shouldn't I restart php-fpm it every time I update the code? I'm not restarting it, but my new code is running immediately.
Here's my opcache setup: https://ibb....
I have VPS with nginx+php-fpm installed and OpenCart 2 CMS.
I have 0 cached scripts and 0 cached keys.
OPcache doesn't cache anything, I tried everything but it is still doesn't work
I am in the process of dockerizing a laravel stack application.
i have a service called app that's running php-fpm and includes the laravel source code inside it.
i want to replicate this service so ...
In a PHP-FPM multi-pool, multi-user (non-chrooted) environment with opcache.use_cwd enabled, what is opcache.validate_permissions mitigating?
The official docs imply key collisions will not occur ...
I am deploying Moodle on our server, however when configuring I came across a field in the current PHP Configuration where opcache blacklist was used (a file which consisted of pages which should not ...
I am running PHP7.2 with opcache enabled. Due to PHP running as FastCGI without any process manager (such as PHP-FPM) I am forced to use the file only opcache which I have set with
On my server I have several domain names. When I list the files via opcache, I saw every opcache files use.
I would know if it's possible to select just a directory and its sub-directory to display ...
1/ I have not knowledge in cache but I would know if it's correct to write this code with opcache_compile_file;
2/ How to check if opcache exits or not ?
$filename = 'toto.php;
I would like to use my own function in zendaccelerator.c, but I can't pass file_handler parameter to call_user_func_ex. Please check my sample and give me some advice...
The PHP interpreter is converting as a first step the souce code into bytecode. In a second step, the bytecode is passed to a Zend Engie that creates the machine code for the relevant CPU. If opcache ...
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 ...
I have one server with 2 sites (distinctly different folders on the server) and I worry about seperating them. Currently they sit with the default settings for php-fpm, which I assume is a single fpm-...
In my application I use multiple Apache with load balances. I pretend start using OPCache with opcache.validate_timestamps = off for performance, but my doubt/concern is about cache reset. When I ...
I have some troubles using the opcache_reset function.
I'm working on a Symfony 2 project. I have to use this function, so I created a route who applies this function then it redirect me to the ...
I have many classes and php files included to another php files.I use OPcache, but I suspect that it doesn't cache all that included php files. Is that true? If yes, then how to turn on this files ...
My application use require to load app routes, like this
require __DIR__ . '/Order.php';
And I have open opcache extension, configuration is
I have an old php architecture with conditional files requires/includes: that is if the program controller needs a component to manage a service it require/include the corresponding file. I tested it ...
According to my phpinfo(), opCache is enabled but I can't find where are located the temp files.
I'm asking because I would like to verify the size of the cache and if it's "too much", I could clear ...
I have been reading about general concepts in PHP performance and what could be done to improve it. When developing websites and it's the time to go live I use HTTP caching and maybe a CDN (depends on ...
I have a business logic where I want to generate the PHP code in runtime and put it into the temporary file then include/require/(compile as opcache) it and delete that file. I am using opcache and ...
From PHP documentation you get only this info:
Absolute path used to store shared lockfiles (for *nix only)
What are lockfiles? What info PHP writes into them?
I've been using OPcache with php-fpm 7 a while now and works fine.
I've been wondering what's the impact performance wise with opcache.file_cache and opcache.file_cache_only options enabled.
How would I locally enable opcache while developing in a Laravel project within PhpStorm?
I have Xdebug enabled and working together with OPcache. OPcache module is loaded first by phpfpm (important). If you try to debug the code below (from the browser) and put a breakpoing in the local ...
I installed NextCloud and in the summary window it keeps telling me that my OPCache is not enabled. I have enabled it and I am seeing conflicting information about if it really is enabled or not.
I have installed Postman app on Ubuntu 18.4,
I have a problem with response, After change the code in PhpStorm IDE the response dose not change, I have cleared storage cache in Devtools but the issue ...
Good Day Everyone. This is my first time using opcache in php and because I've use Laravel as my Framework I installed appstract/laravel-opcache package using composer . So here's the error, I tried ...
I have a standard Laravel 5.6 API with barryvdh/laravel-cors plugin to handle cors requests. If opCache is enabled I sometimes get random failed get requests to the Laravel API.
It is interesting ...
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:
I checked the ...