Skip to content

Commit

Permalink
Merge pull request #1140 from nextcloud/redis-clarification
Browse files Browse the repository at this point in the history
Clarified on the usage of Redis and PHP 7.0+ is required now
  • Loading branch information
MorrisJobke authored Jan 15, 2019
2 parents 13437c2 + 7e64e0e commit 946e795
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions admin_manual/configuration_server/caching_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ You may use both a local and a distributed cache. Recommended caches are APCu
and Redis. After installing and enabling your chosen memcache, verify that it is
active by running :ref:`label-phpinfo`.

.. note:: If you run multiple web servers and enable a distributed cache in
your ``config.php`` (``memcache.distributed``) or a file locking provider
(``memcache.locking``) you need to make sure that they are referring to the
very same memcache server and not to ``localhost`` or a unix socket.

APCu
----

Expand All @@ -59,8 +64,8 @@ Refresh your Nextcloud admin page, and the cache warning should disappear.
Redis
-----

Redis is an excellent modern memcache to use for both local and distributed caching, and
as a local cache for :doc:`Transactional File Locking
Redis is an excellent modern memcache to use for distributed caching, and
as a key-value store for :doc:`Transactional File Locking
<../configuration_files/files_locking_transactional>` because it guarantees
that cached objects are available for as long as they are needed.

Expand Down Expand Up @@ -99,7 +104,7 @@ If you want to connect to Redis configured to listen on an Unix socket (which is
recommended if Redis is running on the same system as Nextcloud) use this example
``config.php`` configuration::

'memcache.local' => '\OC\Memcache\Redis',
'memcache.local' => '\OC\Memcache\APCu',
'memcache.distributed' => '\OC\Memcache\Redis',
'redis' => [
'host' => '/var/run/redis/redis.sock',
Expand Down Expand Up @@ -204,8 +209,6 @@ These instructions are adaptable for any distro that does not package the
supported version, or that does not package Redis at all, such as SUSE Linux
Enterprise Server and Red Hat Enterprise Linux.

The Redis PHP module must be at least version 2.2.6.

For PHP 7.0 and PHP 7.1 use Redis PHP module 3.1.x or later.

See `<https://pecl.php.net/package/redis>`_
Expand Down

0 comments on commit 946e795

Please sign in to comment.