No memory cache configured message even if configured - Centos8

Nextcloud version: 21.0.2
Operating system and version CentOS 8
Apache: Server version: Apache/2.4.37 (centos)
PHP version: PHP 7.4.20
mariadb 10.3

The issue you are facing:
I have set up nextcloud 21.0.0 and there I already had the error message
" No memory cache has been configured. To enhance performance, please configure a memcache, if available. Further information can be found in the [documentation](https://docs.nextcloud.com/server/21/go.php?to=admin-performance)."
Now in version 21.0.2 I have tried again to resolve this issue:

under /etc/my.cnf.d I modified mariadb-server.cnf
(under that directory there is no other valid file.)

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
log-error=/var/log/mariadb/mariadb.log
pid-file=/run/mariadb/mariadb.pid
innodb_buffer_pool_size=1G
innodb_io_capacity=4000

restarted all services, even the whole machine , but still I get the same message

Unfortunately it isn’t 100% clear to me where the message is exactly shown or from which log file you’ve taken it, but “Memory Cache” ususally refers to PHP-Memcache, APC, etc.!

How should it be possible to fix such a problem by modifying the MariaDB configuration? Check-out the administrator guide for further information and use the search function of this forum to find related threads/answers :wink:

https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/caching_configuration.html?highlight=memcache#memory-caching

Thanks for your answer.
Well it is under Admin overview.
There it tells to do so see here
That’s why I have done so.
In config.php under nextcloud dir there is no cache to set.

Ok so I got the solution…
The link next to the message is misleading…
The only thing to do is to install redis and to configure
/var/www/html/nextcloud/config/config.php
like that

'redis' => array(
  'host' => 'localhost',
  'port' => 6379,
),

restart redis and httpd, that’s it.

https://docs.nextcloud.com/server/latest/admin_manual/installation/example_centos.html

1 Like