# Memcache configuration

**URL:** <https://help.nextcloud.com/t/memcache-configuration/220082>\
**Category:** ℹ️ Support\
**Tags:** redis, php82\
**Created:** [March 14, 2025, 7:23pm UTC](https://help.nextcloud.com/t/memcache-configuration/220082 "2025-03-14T19:23:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![favancini](https://help.nextcloud.com/user_avatar/help.nextcloud.com/favancini/32/18520_2.png) [@favancini](https://help.nextcloud.com/u/favancini)\
**Post date:** [March 14, 2025, 7:23pm UTC](https://help.nextcloud.com/t/memcache-configuration/220082/1 "2025-03-14T19:23:52Z")

</div>

Hello,

I installed the latest version of Nextcloud with Apache, PHP 8.2, and MySQL 8.4.

I configured the memory cache in the config.php file.

If I add these lines:

```auto
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => 'true',
'redis' =>
array (
'host' => '/var/run/redis/redis.sock',
'port' => 0,
'timeout' => 0.0,
),

```

The message indicating that the memory cache is not configured disappears, but  
I cannot delete files or access my folders mounted as external storage.

If I remove the lines, the memory cache is not configured, but I can delete files and access external storage.

Thanks for your help 🙂

---

<div class="post-metadata">

**Author:** ![chrissi55](https://help.nextcloud.com/user_avatar/help.nextcloud.com/chrissi55/32/4286_2.png) [@chrissi55](https://help.nextcloud.com/u/chrissi55)\
**Post date:** [March 15, 2025, 7:39am UTC](https://help.nextcloud.com/t/memcache-configuration/220082/2 "2025-03-15T07:39:52Z")

</div>

maybe i found an interesting thread in this forum for you

> [@Can't delete file locally and in Nextcloud web-interface - file is present on database and remote on disk](https://help.nextcloud.com/t/cant-delete-file-locally-and-in-nextcloud-web-interface-file-is-present-on-database-and-remote-on-disk/214904/17):
>
> I just looked here in the Nextcloud PHP Serverinfo and found the info, that the max execution time seems to be 900 sec: Version: 8.2.25 Memory limit: 512 MB Max execution time: 3600 Upload max size: 128 MB OPcache Revalidate Frequency: 2 Extensions: Core, date, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, gmp, json, iconv, SPL, session, mbstring, pcntl, standard, exif, Phar, posix, random, readline, Reflection, imap, shmop, Simp…

you don’t gave any information of your log files in your post but you can start to try disabling the filelocking.enabled from true to false …

 ![Bildschirmfoto vom 2025-03-15 08-38-10](https://help.nextcloud.com/uploads/default/original/3X/4/f/4f87f03a6093409633e97db62d6a5fb7becc35f5.png)

After that try to interact with files /folders in your NC Web-UI  
Does it work or not?

After that you may investigate the table file\_locks in your database …

For more information read here

> **[Transactional file locking — Nextcloud latest Administration Manual latest...](https://docs.nextcloud.com/server/latest/admin_manual/configuration_files/files_locking_transactional.html)**

and here

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

---

<div class="post-metadata">

**Author:** ![jtr](https://help.nextcloud.com/letter_avatar/jtr/32/5_5575768a8748004e209b776fc1b2916d.png) [@jtr](https://help.nextcloud.com/u/jtr)\
**Post date:** [March 15, 2025, 4:59pm UTC](https://help.nextcloud.com/t/memcache-configuration/220082/3 "2025-03-15T16:59:13Z")

</div>

Please fill out the [support template](https://help.nextcloud.com/t/support-template-please-use-this-when-you-request-support/137402) if you’d like assistance rather than ignoring it. 😉

---

<div class="post-metadata">

**Author:** ![system](https://help.nextcloud.com/user_avatar/help.nextcloud.com/system/32/29333_2.png) [@system](https://help.nextcloud.com/u/system)\
**Post date:** [June 13, 2025, 4:59pm UTC](https://help.nextcloud.com/t/memcache-configuration/220082/4 "2025-06-13T16:59:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
