• Resolved oeterchui

    (@oeterchui)


    Hi Guy,
    We are using WP-Optimize. When save the cache setting got the error “The cache configuration file could not be saved to the disk; please check the file/folder permissions of /wp-content/wpo-cache/config/config-www.xxxxx.php”

    To do this, we would like to change the location of the config file to a folder that is writable (will be something like wp-content/uploads-shared/plugins/xxxx/).

    Could you please advise if this is possible and which file contains this configuration so we can test it?

    Thanks in advance,

Viewing 1 replies (of 1 total)
  • Plugin Support wpmansour

    (@wpmansour)

    Hi there! It sounds like you’re running into an issue with saving the cache configuration file due to permissions. Don’t worry, there’s a solution! You can actually change the location where WP-Optimize stores this configuration file to a folder that’s writable for your setup.

    To do this, you’ll need to add a small tweak to your wp-config.php file. Simply define a new path for the cache config like this:

    define('WPO_CACHE_CONFIG_DIR', '/wp-content/uploads-shared/plugins/xxxx/');

    Just replace that path with the directory you’d like to use—make sure it’s a location that has the proper write permissions. Typically, folders should be set to 755 and files to 644 to ensure everything runs smoothly.

    After making this change, you can test it out by saving the cache settings again in WP-Optimize, and it should now write to your chosen directory. Hopefully, that helps resolve the issue!

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