Support » Plugin: LiteSpeed Cache » Fixing: Dynamic “wp-content” folder

  • Resolved Remo R.


    static $RW_PATTERN_RES = 'wp-content/.*/[^/]*(loader|fonts|\.css|\.js)\.php';

    I changed my wp-content folder to “assets” and serving the files via CDN (for testing…)

    When adjusting the htaccess file I noticed that the litespeed-cache does not recognize the “right” media folder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author LiteSpeed Technologies


    Thanks for letting us know! This will be resolved for the next release.

    Thread Starter Remo R.


    You planning to use “WP_CONTENT_DIR” plugin as default?
    Not only in the class-litespeed-cache-admin-rules.php and htaccess file?

    Plugin Author LiteSpeed Technologies


    Likely not exactly. WordPress suggests that WP_CONTENT_DIR should not be used by plugins, and we will honor that the best we can.

    As you can see in the class-litespeed-cache.php constructor, we got the content dir via get_theme_root() (and dirnaming that). We will likely just re-use this. Since the rule in question relates to themes anyway, this should be a fitting solution.

    Let me know what you think! We’re always open to recommendations.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fixing: Dynamic “wp-content” folder’ is closed to new replies.