Add PHP and locking memcache with APCu and Redis for Nextcloud
This commit is contained in:
parent
18cf82b1d2
commit
ad9439afe1
@ -121,6 +121,44 @@ systemctl restart apache2
|
||||
|
||||
[/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
|
||||
|
||||
To execute regular jobs, I personally use cron.
|
||||
|
Loading…
Reference in New Issue
Block a user