• Resolved Ivan Salloum

    (@ivansalloum1)


    Hey,

    I disabled the Plugin/Theme editor and updates/installations in WordPress using:

    define('DISALLOW_FILE_MODS', true);

    After doing so, I noticed a message in the Redis plugin dashboard indicating that the filesystem isn’t writeable. Would this affect the Redis object cache?

    If I add this directive before enabling Redis, I can’t enable it anymore because the filesystem isn’t writeable.

    If Redis is already enabled, I believe it will still function properly.

    Would this directive impact Redis from functioning, or adding it after enabling Redis won’t make a difference?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Till Krüss

    (@tillkruess)

    We’ll make this a bit less alerting in the next version.

    If DISALLOW_FILE_MODS then the Redis Object Cache plugin can’t work with the filesystem, which is no issue if you put the object-cache.php drop-in in place yourself, or use wp redis enable to do so.

    Thread Starter Ivan Salloum

    (@ivansalloum1)

    Thanks for your answer.

    If I enable Redis first and then add DISALLOW_FILE_MODS to the wp-config.php file, would that work?

    Plugin Author Till Krüss

    (@tillkruess)

    We just released an update to Redis Object Cache that makes this less harsh.

    If you want to enable the object-cache.php drop-in through the WordPress dashboard, then you must disable DISALLOW_FILE_MODS for the action.

    You can however always enable the drop-in using the WP CLI command wp redis enable.

    Thread Starter Ivan Salloum

    (@ivansalloum1)

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.