Support » Plugin: Autoptimize » Cache Directory

  • Resolved lennilg

    (@lennilg)


    According to the FAQ I’m able to change the default autoptimize cache directory using the following lines:

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

    However, doing this causes autoptimize to read / write files to wp-content/resources/

    What if I want, autoptimize to read / write to /var/tmp/resources/

    It keeps re-writing every URL attempt into /var/www/site/wp-content/resources

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

    (@optimizingmatters)

    AO by design has to write to a directory inside WordPress root (and no matter where you write, it has to be to a dir which the webserver has access to as well to server the files), but maybe look into symlinking (provided your webserver is configured to follow symlinks)?

    lennilg

    (@lennilg)

    I was able to use define(‘AUTOPTIMIZE_CACHE_DIR’, in wp-config.php

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