Problem purging cache when domain alias used
-
I have frequently had difficulty clearing the Litespeed cache for many of our WordPress sites. I think that I have finally found the cause.
Most of our sites are built using a temporary domain name. Later, when the site is made "live", we switch to a different domain name which is configured as a domain alias. Below is an example:
Temporary domain name: tempdomain.com
Permanent domain name (domain alias): permanentdomain.com
Root directory for site: /home/tempdomain.com/public_html/
The cache files are stored at these paths:
/usr/local/lsws/cachedata/tempdomain.com/priv/
/usr/local/lsws/cachedata/permanentdomain.com/priv/
From the WordPress admin pages, I find that when I hit the link "Purge all", the site behaves as if the cache is not purged. I think that the button "Purge all" cleans the files from the directory for the original domain name:
/usr/local/lsws/cachedata/tempdomain.com/priv/
but does not clear the files from the directory for the active site (domain alias):
/usr/local/lsws/cachedata/permanentdomain.com/priv/
Our server configuration is as follows:
Alma Linux 8
OpenLiteSpeed
Cyberpanel
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Problem purging cache when domain alias used’ is closed to new replies.