Wordpress LScache Plugin: Change the location where files are cached
Last Updated on: Wed, 15 Apr 2026 00:00:02 I want to store cached files in wp-content/cache/litespeed, instead of wp-content/litespeed. The advice Ive seen was to set a couple of constants in wp-config.php, but since WP_CONTENT_DIR isnt defined at that stage, thats not good advice. It also doesnt seem to work when I replace it with the corresponding literal string. Is there some other way to configure the plugin to use a custom location for storing its CSS, CCSS, UCSS and JS files? The page I need help with: https://wordpress.org/support/topic/move-litespeed-folder-location/ please try something like define( LITESPEED_STATIC_DIR, /path/to/somewhere ) Like I said, Ive tried this, but it didnt seem to work. Also, its good practice to rely on the WordPress constant. please try define( LITESPEED_STATIC_URL, https://xxx/wp-content/cache/litespeed ) define( LITESPEED_STATIC_DIR, /xxx/wp-content/cache/litespeed ) its good practice to rely on the WordPress constant. well , by default, it does , but since you are doing something was not exactly designed to work that way since we need to define these 2 , which typically safe to edit in wp-config.php which it is even before WP_CONTENT_URL/DIR is defined , so I guess we have to not rely on wp const A plugin filter could do the trick much better. aye sir , will forward to our devs as feature request.
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference