Add PHP and locking memcache with APCu and Redis for Nextcloud

This commit is contained in:
exu 2024-01-10 19:42:30 +01:00
parent 18cf82b1d2
commit ad9439afe1

View File

@ -121,6 +121,44 @@ systemctl restart apache2
[/shroot] [/shroot]
### PHP Memory Cache
[shroot]
```sh
apt install php-apcu
```
[/shroot]
```php
'memcache.local' => '\OC\Memcache\APCu',
```
### Redis memcache
[shroot]
```sh
apt install redis php-redis
```
[/shroot]
If Redis is installed on the same machine, unix sockets can be used to communicate.
Add these lines to `config.php`
```php
'filelocking.enabled' => true,
'memcache.locking' => '\OC\Memcache\Redis',
'redis' => array(
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),
```
### Cron ### Cron
To execute regular jobs, I personally use cron. To execute regular jobs, I personally use cron.