• Resolved ukbestrong

    (@ukbestrong)


    Hi all,

    Im experiencing issues with the WP Super Cache writing a .htaccess file to the wp-content/cache file

    This is over riding the expires headers in wp-content/cache/autoptimize

    To change directory for AO I can follow this advice: –

    Yes, if you want to serve files from e.g. /wp-content/resources/aggregated_12345.css instead of the default /wp-content/cache/autoptimize/autoptimize_12345.css, then add this to wp-config.php:

    define(‘AUTOPTIMIZE_CACHE_CHILD_DIR’,’/resources/’);
    define(‘AUTOPTIMIZE_CACHEFILE_PREFIX’,’aggregated_’);

    I have a question: –

    1) Once I edit wp-config.php and save the file is the /resources directory created and all the existing files/folders moved with it?

    Best wishes

    Rick.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    is the /resources directory created

    yes

    and all the existing files/folders moved with it?

    no, AO starts from scratch, not knowing about the old files any more. best is to remove the files and to clear the page cache (WPSC).

    hope this helps,
    frank

    Thread Starter ukbestrong

    (@ukbestrong)

    Thats brilliant Frank – I moved the directory and all seems to be working fine.

    It didnt solve the reason I moved it though which was the expires headers being overwritten by WPSC’s .htaccess file

    See screenshot

    Plugin Author Optimizing Matters

    (@optimizingmatters)

    The HTTP response headers say differently;

    Cache-control max-age is now indeed pointing to a far-ahead date, I think you’re good to go 🙂

    Thread Starter ukbestrong

    (@ukbestrong)

    Frank! I couldnt sleep! It was on my mind all night so got up early to tweak!

    I ticked the static files option and that did the job 😄

    I really love and appreciate the kind way you offer support to users of AO.

    I’ve read hundreds of your replies as I try to build knowledge of your excellent plugin and I’ve been overwhelmed by your dedication and generosity.

    Merry Christmas to you and yours.

    I’m off to leave a review 👍

    • This reply was modified 4 years, 4 months ago by ukbestrong.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change from Default Directory on Existing Installation’ is closed to new replies.