• Hi,

    It looks like the plugin automatically sets the cache folder to ./wp-content/cache/autoptimize/.
    Because of a master-slave setup, I need to move this folder somewhere else. Is there a way to permanently adjust this?

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank Goossens

    (@futtta)

    yeah, by setting the appropriate constants in wp-config.php, cfr. the FAQ 🙂

    Thread Starter wpbulli

    (@wpbulli)

    Hi Frank,

    Thanks for your reply. Sorry, I wasn’t specific enough. The available constant CACHE_CHILD_DIR always uses the WordPress directory as a base path but I need this to be somewhere completely different, e.g. /tmp/autoptimize/

    Is there any way to achieve this?

    Thanks!

    Plugin Author Frank Goossens

    (@futtta)

    no, afraid the AO-cache has to be the wordpress directory @wpbulli.

    Plugin Author Frank Goossens

    (@futtta)

    late addendum; the CACHE_CHILD_DIR obviously also needs to be accessible for apache and configured as such in one of the sites_available/your_site, as the HTML will include references to CACHE_CHILD_DIR/js/autoptimize_<md5hash>.js and CACHE_CHILD_DIR/css/autoptimize_<md5hash>.css

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Change cache folder path’ is closed to new replies.