Skip to main content
English
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.
Installing and configuring the APCu cache

When developing applications, there are tasks that are resource-intensive or that do not change during a session. It is important to cache this data.

APCu uses RAM to store data. Configuration information is available here here.

installations :

sudo apt install php8.1-apcu

use:

#Sauvegarde
apcu_store($key_APCu, self::$cacheAPCu, 3600);
#Recuperation des données.
apcu_fetch($key_APCu);

Configuration:
Edit the file : /etc/php/8.1/fpm/conf.d/20-apcu.ini


Tip:
To determine the path to a PHP configuration file, you can display the phpinfo() page. (under Drupal /admin/reports/status/php).

 

Profile picture for user admin Stephane K

Écrit le

Il y'a 2 years
Modifié
Il y'a 1 month
Loading ...
WhatsApp
Support Habeuk : +237 694 900 622
WhatsApp Send