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
0
votes
1 answer

Get list of key-value pairs of APCU

I'm trying to get a list of the key-value stored in APCu. I have tried apcu_cache_info(), but it doesn't return the value and returns a lot of additional info that I don't need. I don't know if APCUIterator can be the solution, I'm trying to…
Héctor
  • 399
  • 3
  • 16
0
votes
1 answer

How to know when APCu cache gets cleared because it is full?

When APCu cache space becomes full, APC simply clears it off all its data so as to regain free cache space. Is there a PHP way to know when this happens ?
JLuc
  • 333
  • 5
  • 15
0
votes
1 answer

How to use ApcuCache with Symfony, Doctrine ORM and DoctrineCacheBundle

before i was stuck with this problem the project was running on PHP5.6 on SF2.6. now im using PHP7.1.20 with SF2.8. i installed apcu along with apcu_bc inside my docker container and enabled the apcu php module. now the error…
netzding
  • 772
  • 4
  • 21
0
votes
2 answers

typo3 APCu error

in my typo3 project we use a company internal web space. Currently an error message appears as shown in the picture. On this APCu cannot be installed in the PHP configuration due to internal defaults. How can I modify my typo3 instance so that I…
lrefopam
  • 511
  • 1
  • 5
  • 22
0
votes
1 answer

Php apcu for different version

I have several php version. And I need install apcu and apc for both php version. I installed pecl install apcu pecl install apcu_bc-beta and after this in /usr/lib/php/20170718/ have apcu.so and apc.so And I added…
shuba.ivan
  • 3,824
  • 8
  • 49
  • 121
0
votes
0 answers

PHP 7.1.14 APCu not working in Mac OSX High Sierra

I am not able to make apc work with High Sierra and PHP 7.1.14. I have done everything. Below is the output for php -i | grep apc PHP Warning: Method apc_store() cannot be a NULL function in Unknown on line 0 PHP Warning: apc: Unable to register…
Bhaskar
  • 63
  • 5
0
votes
1 answer

Issue with extension typo3_console due to not detected APCu module

I've TYPO3 8 installation via Composer. I'm experiencing an issue with using extension typo3_console v5.3.0 from CLI. For the command: ./vendor/bin/typo3cms extension:activate realurl I get following error: [ TYPO3\CMS\Core\Cache\Exception ] …
explorer
  • 165
  • 1
  • 9
0
votes
2 answers

PHP Cache Mechanism

I was working on a program which needs a cache system. so the description is I got a mysql db which has 4 columns, 'mac','src','username','main' Which mac,src,username are key/values and foreign key in main table. it will insert to those 3 first and…
Omid Navy
  • 272
  • 2
  • 12
0
votes
1 answer

Installing PHP 7.1 APCu Extension on UBUNTU 16.04

I am trying to load apcu with php 7.1 in ubuntu 16.04, i have done the following steps: sudo apt-get install software-properties-common python-software-properties sudo apt-add-repository ppa:ondrej/php sudo apt-get update sudo apt-get install -s…
eroticid
  • 39
  • 1
  • 1
  • 7
0
votes
1 answer

PHP - Does APCu use the same memory pool as defined for opcache?

According to the docs, APCu is still using the same configuration as for APC which includes defining the amount of memory to be used apc.shm_size = 32M But Opcache has it's own configuration for memory: opcache.memory_consumption = "64" Does the…
Peter Ward
  • 23
  • 2
0
votes
1 answer

PHP accelerator installed but symfony 3 not recognized it

When i install symfony, it recommeneded me: Install and/or enable a PHP accelerator (highly recommended). I installed apcu according to http://www.ivangabriele.com/php-how-to-install-php-accelerator-in-xampp/ APCu installed successfully and…
user6586012
0
votes
0 answers

best setting of php apcu for 2000000 tags

In my app,I want to store 2000000 (two million) tags in php apcu for performance. x……x is key and values.$ar is about 2000k keys and size is about 250MB.I want to store 1 day. "x……x",…………); foreach($ar as $k=>$v){ …
0
votes
1 answer

Installing APCU for PHP 5.5 on WIndows7

I have ran into a problem attempting to install APCU for PHP5.5 My configuration is: Windows7 64-bit PHP 5.5 x86 safe-thread enabled XAMPP 3.2.1 I tried the following versions of APCU (both thread-safe and non-thread safe and for both 64 and…
-1
votes
1 answer

How to install php extensions via pecl for different php versions on Mac

I am not able to install php extensions like apcu for different php versions separately. I am running php7.1 and php7.3 (installed via brew) on MacOS Mojave I already tried things like pecl -d php_suffix=7.1 install as I found this…
m00cfe81
  • 91
  • 1
  • 5
-1
votes
1 answer

Migrating von APC to APCU in php application

the content management framework MODX provides the option to use APC as caching engine. I figured out that I might be able to migrate that to APCu. I copied and edited all code so that i have a second option now that offers APCu as cache engine. As…
1 2 3 4
5