# Memory caching thumbnails photos

**URL:** <https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121>\
**Category:** ℹ️ Support\
**Created:** [November 4, 2020, 9:53am UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121 "2020-11-04T09:53:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![UndMe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/undme/32/29545_2.png) [@UndMe](https://help.nextcloud.com/u/UndMe)\
**Post date:** [November 4, 2020, 9:53am UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/1 "2020-11-04T09:53:26Z")

</div>

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:

> **[Memory caching — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/20/admin_manual/configuration_server/caching_configuration.html)**

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.

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [November 4, 2020, 11:41am UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/2 "2020-11-04T11:41:53Z")

</div>

> [@UndMe](#):
>
> Can I activate all 3 at the same time and speed up the loading of photos? or can I only have 1 activated?

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.

---

<div class="post-metadata">

**Author:** ![UndMe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/undme/32/29545_2.png) [@UndMe](https://help.nextcloud.com/u/UndMe)\
**Post date:** [November 4, 2020, 11:57am UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/3 "2020-11-04T11:57:02Z")

</div>

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

![image](https://help.nextcloud.com/uploads/default/original/3X/4/1/411ba9ea46aa47a0fd0eff8179b9871d3fb186b0.png)

i think i’m not using apcu, just redis

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [November 4, 2020, 4:30pm UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/4 "2020-11-04T16:30:47Z")

</div>

I’m currently using the following configuration:

```auto
  'memcache.local' => 'OC\\Memcache\\APCu',
  'memcache.locking' => 'OC\\Memcache\\Redis',

```

---

<div class="post-metadata">

**Author:** ![UndMe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/undme/32/29545_2.png) [@UndMe](https://help.nextcloud.com/u/UndMe)\
**Post date:** [November 4, 2020, 5:00pm UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/5 "2020-11-04T17:00:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![j-ed](https://help.nextcloud.com/user_avatar/help.nextcloud.com/j-ed/32/7281_2.png) [@j-ed](https://help.nextcloud.com/u/j-ed)\
**Post date:** [November 4, 2020, 7:06pm UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/6 "2020-11-04T19:06:26Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:23pm UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/7 "2024-12-12T19:23:46Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 7:23pm UTC](https://help.nextcloud.com/t/memory-caching-thumbnails-photos/97121/8 "2024-12-12T19:23:47Z")

</div>


