Memory caching thumbnails photos

Hello everyone, I have my nextcloud server running with redis but I notice that the thumbnails of the images still take a long time to load.
Looking at the nextcloud configuration guide I have seen the following:

There are 3 ways to speed up the cache: Redis, APCu, Memcached

Can I activate all 3 at the same time and speed up the loading of photos? or can I only have 1 activated?

Thank you.

I don’t think that it will help to configure all three because of their different use case (local, distributed, locking), but at least a caching mechanism for local and locking should be configured.

1 Like

ok, and how do I configure it? I currently have the following configuration in the config.php file


i think i’m not using apcu, just redis

I’m currently using the following configuration:

  'memcache.local' => 'OC\\Memcache\\APCu',
  'memcache.locking' => 'OC\\Memcache\\Redis',
1 Like

If I put that configuration it gives me an error when I load the web page.
Where can I find the configuration?

You can only use the APCu module if it has been loaded by the web server. So make sure that it’s correctly loaded before you activate it in the Nextcloud configuration file.