How to change cache directory




Wordpress LScache Plugin: How to change cache directory

Last Updated on: Wed, 15 Apr 2026 00:00:02
Dear Team Im currently using Litespeed Cache on a Litespeed shared host. The plugin creates a cache dir under /home/user/lscache/. Is there a way to let it create the same dir under /home/user/public_html/dir-of-the-wp-site/wp-content/cache/ instead? Many thanks in advance. Hi, the /home/user/lscache/ , technically , is not created by plugin , as in many PHP environment , PHP script may not have access outside of its directory the lscache dir is created by LSWS server CacheRoot lscache by this directive in Apache configuration file. You can change that lscache to other directory , but this may requires root access on your server to do so. Best regards, Many thanks for the information!



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference