Wordpress LScache Plugin: Fixing: Dynamic wp-content folder
Last Updated on: Wed, 15 Apr 2026 00:00:02 class-litespeed-cache-admin-rules.php: 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. Thanks for letting us know! This will be resolved for the next release. You planning to use WP_CONTENT_DIR plugin as default? Not only in the class-litespeed-cache-admin-rules.php and htaccess file? 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! Were always open to recommendations. Cheers, Kevin
LiteCache Rush: Speed comes from using less, not from doing it faster
Reference