meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
sw:owncloud [2020/04/23 07:48] niziaksw:owncloud [2020/04/29 21:23] (current) niziak
Line 15: Line 15:
  
 Then try to open avatar file using link: [[https://my.oc.com/avatar/jankowalski/32]] to get 32x32 avatar. Then try to open avatar file using link: [[https://my.oc.com/avatar/jankowalski/32]] to get 32x32 avatar.
 +
 +====== Redis ======
 +
 +Optional remove and purge PHP-APCU module. However OC docs recommends to keep it for local memcache, because it is faster than Redis.
 +<code bash>
 +sudo phpdismod apcu && sudo apt-get purge php-apcu -y
 +sudo apt-get install redis-server php-redis
 +sudo phpenmod redis
 +
 +# restart PHP: php-fpm / Apache / Nginx
 +
 +# Test module
 +php --ri redis
 +
 +redis-server -v
 +
 +</code>
 +
 +<file php | config.php>
 +'memcache.local' => '\\OC\\Memcache\\Redis',
 +'filelocking.enabled' => 'true',
 +'memcache.distributed' => '\\OC\\Memcache\\Redis',
 +'memcache.locking' => '\\OC\\Memcache\\Redis',
 +'redis' =>
 +array (
 +  'host' => 'localhost',
 +  'port' => 6379,
 +  'timeout' => 0,
 +  'dbindex' => 0,
 +),
 +</file>
 +