Transactional File Locking

Hello ownclouders,

on my OC 10.0.9 on a hosted web space continues showing the alert message:
Transactional file locking should be configured to use memory-based locking, not the default slow database-based locking. See the documentation

in the admin settings area, even after i added:
‘filelocking.enabled’ => true,
‘filelocking.ttl’ => 3600,

to the config.php file.

On my php_info Page is written thath redis 3.0 is activated by the provider.
I’m using PHP 7.2.8 and Server API is: FPM/FastCGI

Any idea how to solve this problem?

Thanks for your help.
Sven

1 Like

Hey! Basically, it is recommending to use the Redis locking implementation, as this is faster and usually results in less Locking exceptions, making the user experience much nicer.

Docs on how to set this up: https://doc.owncloud.org/server/10.0/admin_manual/configuration/server/caching_configuration.html#redis-configuration

Cheers!

1 Like

Key part is:

'memcache.locking' => '\OC\Memcache\Redis', // Add this for best performance

1 Like