Setup In-memory cache on Nextcloud
You shoud setup memory cache on Nextcloud for performance. Now I choosed APCu for local memory cache, Redis for distributed and locking memory cache.
Enable memory cache on Nextcloud
Edit nextcloud config.php file.
$ sudo vi /misc/extHDD/nc.lama-lab.mydns.jp/config/config.php
...
'memcache.local'=>'\OC\Memcache\APCu',
'memcache.distributed'=>'\OC\Memcache\Redis',
'memcache.locking'=>'\OC\Memcache\Redis',
'redis' =>
array (
'host'=>'/run/redis/redis.sock',
'port'=>0,
'dbindex'=>0,
'password'=>'',
'timeout'=>1.5,
),
...
Restart Nginx
$ sudo systemctl restart nginx
Last Updated on June 4, 2024 by lama-admin
Leave a Reply