• Resolved Gal Baras

    (@galbaras)


    I want to store cached files in wp-content/cache/litespeed, instead of wp-content/litespeed.

    The advice I’ve seen was to set a couple of constants in wp-config.php, but since WP_CONTENT_DIR isn’t defined at that stage, that’s not good advice. It also doesn’t 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: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support qtwrk

    (@qtwrk)

    please try something like

    define( 'LITESPEED_STATIC_DIR', '/path/to/somewhere' ) ;

    Thread Starter Gal Baras

    (@galbaras)

    Like I said, I’ve tried this, but it didn’t seem to work. Also, it’s good practice to rely on the WordPress constant.

    Plugin Support qtwrk

    (@qtwrk)

    please try

    define( 'LITESPEED_STATIC_URL', 'https://xxx/wp-content/cache/litespeed' ) ;
    define( 'LITESPEED_STATIC_DIR', '/xxx/wp-content/cache/litespeed' ) ;

    it’s 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 ??

    Thread Starter Gal Baras

    (@galbaras)

    A plugin filter could do the trick much better.

    Plugin Support qtwrk

    (@qtwrk)

    aye sir , will forward to our devs as feature request.

    Thread Starter Gal Baras

    (@galbaras)

    Any idea when this might be released?

    Thread Starter Gal Baras

    (@galbaras)

    Still waiting for this, and I don’t see any mention of this on GitHub, so not really resolved.

    Thread Starter Gal Baras

    (@galbaras)

    @qtwrk Any updates on this?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change the location where files are cached’ is closed to new replies.