• Resolved John Weissberg

    (@johnwwweissberg)


    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)
  • Plugin Support qtwrk

    (@qtwrk)

    this is more like server conf issue , just a thought , what happens if you swap the temp/perm domain position in setting ?

    Thread Starter John Weissberg

    (@johnwwweissberg)

    My question is: When the admin hits button “Purge”, which folder does the LiteSpeed Cache plugin try to clear?

    Does it clear the folder using data from active domain name (SERVER_HOST)? Does it clear the folder from the original configuration? How is the path the cache folders determined?

    Plugin Support qtwrk

    (@qtwrk)

    it doesn’t delete any files, it just give OLS a header x-litespeed-purge: TAG

    you have kind of unusual setup , I am not sure , will set up a test server to check around a bit

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Problem purging cache when domain alias used’ is closed to new replies.