Title: Make cache directory configurable
Last modified: February 28, 2021

---

# Make cache directory configurable

 *  Resolved [hades200082](https://wordpress.org/support/users/hades200082/)
 * (@hades200082)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/make-cache-directory-configurable/)
 * Autoptimize already provides an option to set the cache location by defining 
   a constant in the wp-config.php file:
 * define(‘AUTOPTIMIZE_CACHE_CHILD_DIR’,’/uploads/autoptimize/’);
 * On many decent WordPress hosts (such as Pantheon) they lock down the wp-content
   directory to be read-only and only allow write access to the wp-content/uploads
   directory.

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

 *  Plugin Author [Shakeeb Sadikeen](https://wordpress.org/support/users/shakee93/)
 * (@shakee93)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/make-cache-directory-configurable/#post-14113478)
 * Hey there,
 * Thank you for the feedback. Sure, we can add a constant. Will let you know once
   it’s available.
 * Best,
    Shakeeb.
 *  Plugin Author [Shakeeb Sadikeen](https://wordpress.org/support/users/shakee93/)
 * (@shakee93)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/make-cache-directory-configurable/#post-14215535)
 * Hey there,
 * We have released support to this from version 1.3.15. Please let me know if you
   have it working.
 * Marking this as resolved, please re-open if you have anything about it.
 * Thank you,
    Shakeeb.

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

The topic ‘Make cache directory configurable’ is closed to new replies.

 * ![](https://ps.w.org/unusedcss/assets/icon-256x256.gif?rev=2781708)
 * [RapidLoad AI - Optimize Web Vitals Automatically](https://wordpress.org/plugins/unusedcss/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/unusedcss/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/unusedcss/)
 * [Active Topics](https://wordpress.org/support/plugin/unusedcss/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/unusedcss/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/unusedcss/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Shakeeb Sadikeen](https://wordpress.org/support/users/shakee93/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/make-cache-directory-configurable/#post-14215535)
 * Status: resolved