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
8
votes
2 answers

Facing issues while installing apcu_bc package on PHP 8

Facing below errors while installing package pecl install apcu_bc on PHP 8 In file included from /tmp/pear/temp/apcu_bc/php_apc.c:35: /usr/local/include/php/ext/apcu/apc_arginfo.h:4:3: error: #error Not supported on PHP >= 8.0 # error Not…
ShaMoh
  • 1,490
  • 3
  • 18
  • 34
8
votes
4 answers

How to clear Doctrine APC cache for production?

I have this issue when I add a column to one of my entities and release it for production I have to restart Apache in order to clear Doctrine metadata APC/APCU cache. I have tried all commands below but none worked for me: php -r…
pmoubed
  • 3,842
  • 10
  • 37
  • 60
7
votes
1 answer

UndefinedFunctionException - Attempted to call function "apc_fetch" from namespace "Doctrine\Common\Cache"

I am trying to run app/console doctrine:schema:create --dump-sql using Symfony 2.7 on Ubuntu 16.04 with PHP7. The above command throws the following error: [Symfony\Component\Debug\Exception\UndefinedFunctionException] Attempted to call…
dufte
  • 249
  • 1
  • 4
  • 16
6
votes
1 answer

memcached, APCu or redis as cache for Symfony and Doctrine

We're currently trying to decide, what cache we should use with Symfony and Doctrine. The idea behind it, is to reduce load and db calls, by caching values. The caching systems in question are: memcached, APCu and redis. Our current favorite would…
wawa
  • 4,816
  • 3
  • 29
  • 52
5
votes
0 answers

Error while installing APC

I am getting following error while installing APC I also followed the guidelines mentioned at https://wiki.bitnami.com/Components/PHP#How_to_install_APC_module.3f but same error. I am trying to install it in a Bitnami Image for Wordpress in Google…
Rohit Manglik
  • 347
  • 1
  • 3
  • 17
5
votes
1 answer

APCu doesn't store in PHP 7

APCu will only fetch values that were stored in the current page load. Refreshing this twice: outputs the following: bool(false) string(5)…
user5174817
4
votes
1 answer

install apcu PHP extension in azure webapp linux container

I'm trying to start existing php application in azure App Service. Application is using apcu extension. I'm trying to istall extension to the app service. I connect via ssh and try to install the extension via pecl install apcu But I'm getting…
4
votes
1 answer

Cell entry A1 no longer exists in cache

I use PhpOffice\PhpSpreadsheet with Apcu caching, and i have this error Error: Cell entry A1 no longer exists in cache. This probably means that the cache was cleared by someone else. $pool = new \Cache\Adapter\Apcu\ApcuCachePool(); $simpleCache =…
Ekhrikhor
  • 91
  • 2
  • 5
4
votes
2 answers

I do not get APCu installed with PHP 7.2 on my Mac

I changed my default apache server setup on my mac to be able of easily switching between php versions following this guide. Now, when I return to my project which is based on the CMS TYPO3, I get the error, that "The PHP extension "apcu" must be…
primarykey123
  • 137
  • 1
  • 9
4
votes
2 answers

Apcu is not enabled when installed with apt-get on PHP7.2-apache stretch image

I installed php-apcu with apt-get install on PHP7.2-apache-stretch but not able to enable it. The apcu.so and apcu.ini files are created during installation . Service Apache is also restarted and the content of apcu.ini is also good but php -m is…
DepGr
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

Missing php_apcu.dll for PHP 8.2 / APCu 5.1.22?

I am trying to set up PHP 8.2 with APCu extension on Windows. However, it seems that PHP 8.2 compatibility was only added to the latest APCu version 5.1.22 (released 2022-09-19), and the corresponding php_apcu.dll file is missing - I cannot find it…
Leszek Pachura
  • 403
  • 4
  • 18
3
votes
0 answers

Are PHP APCU operations atomic

I've just started using APCU caching in my PHP application. However, I was wondering whether the operations are atomic or not. The documentation (e.g.: https://www.php.net/manual/de/function.apcu-store.php) it just states: Unlike many other…
3
votes
1 answer

Is APCu data stored in hard disk or ram?

The title talks by itself. Where is APCu data stored? Hard disk or RAM?
Héctor
  • 399
  • 3
  • 16
3
votes
0 answers

Unable to change APCu size on heroku

I wanted to increase apcu cache size in one of my heroku php applications. I created .user.ini file and added the following line into it as per the instructions given in heroku documentation. apc.shm_size=64M But when I check phpinfo, I can't see…
Srikar Durgi
  • 364
  • 3
  • 10
3
votes
2 answers

In Symfony2, which classpath caching method is more performant: Composer class map or ApcClassLoader using APCu?

Reading the Symfony2 performance docs: http://symfony.com/doc/2.8/performance.html I'm trying to figure out which solution is better for caching class name paths. I'm using PHP7 so APC is not available, just apcu and opcache. Given that I don't have…
fivejeez
  • 63
  • 1
  • 6
1
2 3 4 5