Questions tagged [apcu]

APCu provides a user variable cache to PHP.

APCu uses the APC codebase to provide the user variable caching parts of APC.

APC was the de-facto cache for PHP, until Zend open sourced and donated their Zend Optimizer+ product, merged into PHP 5.5 as Opcache.

75 questions
1
vote
0 answers

APCu Symbol not found: _zend_signal_globals

I tried to install APCu by pecl. The installation was smooth. However, PHP can't load APCu. This is the error message: PHP Warning: PHP Startup: Unable to load dynamic library…
user4344980
  • 383
  • 1
  • 3
  • 6
1
vote
1 answer

APCu configuration - gc_ttl = 0?

I'm working to optimize APCu configuration on a set of busy servers. Last week we encountered a problem with APC, with these errors in our PHP logs apc_add(): GC cache entry '....:' was on gc-list for 3601 seconds' of severity 2 in /.../index.php…
quickshiftin
  • 66,362
  • 10
  • 68
  • 89
1
vote
0 answers

When did the API of apcu_cache_info() change, and how?

We're using APCu as a data cache for PHP on a number of different installations - workstations, development and production servers. Unfortunately, the APCu API appears to be a moving target, and there is little to no official documentation (that I…
Zilk
  • 8,917
  • 7
  • 36
  • 44
0
votes
1 answer

APCU not appearing in an Azure Linux Docker Container

I am trying to get apcu working from an Azure docker container running in a Linux app service plan. I have tried the LAMP docker running locally and apcu works fine. When I run in Azure there are no errors but phpinfo() does not mention apcu, it's…
Rob Sedgwick
  • 4,342
  • 6
  • 50
  • 87
0
votes
0 answers

Failed to enable apcu

I installed apcu by following steps: (PHP Version 8.1.13) sudo apt-get install php-apcu php-igbinary add extension=apcu.so under Dynamic Extensions of the php.ini file restarted apache use php -m and I can see apcu module is in the list. But…
diabloooo0
  • 31
  • 2
0
votes
0 answers

Got warning: 'WARNING [cache] Failed to save key' after update doctrine configuration

I got a warning: 'WARNING [cache] Failed to save key', after trying to update the doctrine configuration. this error appears when i run bin/console. I tried updating the doctrine configuration to get rid of the deprecation warning I got. Previously…
0
votes
1 answer

docker-php-ext-install: command not found error while installing apcu_bc package on PHP 8

I am trying to install APCU and I got an error: mkdir -p /usr/src/php/ext/apcu && curl -fsSL https://pecl.php.net/get/apcu | tar xvz -C "/usr/src/php/ext/apcu" --strip 1 && docker-php-ext-install apcu acc to: Facing issues while installing…
0
votes
0 answers

APCu, composer, Symfony

I have the following Server configuration (this is the Web Version): System Linux dd19338 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64 Build Date Nov 28 2022 09:57:52 Build System Linux Server API …
Just Pilot
  • 474
  • 3
  • 11
0
votes
0 answers

Is it possible to read a shared memory block from inside a loop in PHP and get updated values when that shared memory is updated by another script?

I have a PHP EventSource script that looks something like this: ... while (true){ // read state of shared memory echo.. [value inside shared memory]; if (connection_aborted()) break; sleep(n); } The EventSource parts works well,…
Gutiman
  • 61
  • 3
0
votes
0 answers

Prestashop CacheApc not working for 1 site, but is for others on the same server

I duplicated my site to make a dev site, and that site when CacheApc is turned on changes the product stock correctly when altered through the backoffice. The original site however doesn't, when you change the stock with CacheApc the stock won't…
awd zxc
  • 1
  • 1
0
votes
0 answers

APCu: Cannot call key() on invalid iterator

I'm working on an older version of ILIAS 5.4 in an DDEV (Docker) development environment. It is a Learning Management System written in PHP. The runtime environment consists of: GNU/Linux Debian 10 Buster PHP 7.3 MariaDB 10.3 Currently I stumbled…
mrkskwsnck
  • 338
  • 1
  • 3
  • 14
0
votes
1 answer

PHP8 - APCuIterator::__construct(): Regular expressions support is not enabled, please enable PCRE for APCuIterator regex support

I have upgraded our Docker images from PHP7.4 to PHP8 and now I am getting this error on every request: APCuIterator::__construct(): Regular expressions support is not enabled, please enable PCRE for APCuIterator regex support. We are using Symfony…
Martin Melka
  • 7,177
  • 16
  • 79
  • 138
0
votes
1 answer

Will APCu work on Apache 2.4 (Win64) with PHP7 installed as Apache module?

I have a single, simple Apache/2.4.46 server running on Windows 64-bit, paired with PHP/7.4.15. PHP is installed as an Apache module (LoadModule php7_module ".../php7apache2_4.dll"). My question is: will APCu be functional in such setup? In other…
Leszek Pachura
  • 403
  • 4
  • 18
0
votes
0 answers

Call to undefined function apcu_add()

I'm currently working on an api which has been developed using Lumen 5.4. I'm trying to run this on my local XAMPP for Linux 7.4.3. But I keep getting the following error, lumen.ERROR: Symfony\Component\Debug\Exception\FatalThrowableError: …
Roshana Pitigala
  • 8,437
  • 8
  • 49
  • 80
0
votes
0 answers

Symfony apcu class loader not found, upgrade from 2.8 to 3.4

I've upgraded from Symfony version 2.8 to 3.4 everything worked fine locally, but this may be because it was using app_dev.php however in production I get PHP Fatal error: Uncaught Error: Class 'Symfony\\Component\\ClassLoader\\ApcClassLoader' not…
GAV
  • 1,205
  • 2
  • 18
  • 38