Title: Dynamic cache dir?
Last modified: August 31, 2016

---

# Dynamic cache dir?

 *  [Svetoslav Marinov](https://wordpress.org/support/users/lordspace/)
 * (@lordspace)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/dynamic-cache-dir/)
 * Is there a reason not to use this approach rather than full path to the folder?
   It’s pain in the **** when switching hosts.
 * define( ‘WPCACHEHOME’, dirname(__FILE__) . ‘/wp-content/plugins/wp-super-cache/’);//
   Added by WP-Cache Manager
 * [https://wordpress.org/plugins/wp-super-cache/](https://wordpress.org/plugins/wp-super-cache/)

The topic ‘Dynamic cache dir?’ is closed to new replies.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Svetoslav Marinov](https://wordpress.org/support/users/lordspace/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/dynamic-cache-dir/)
 * Status: not resolved