• Resolved emos123

    (@emos123)


    I have set the “Default Public TTL Cache” for 30 minutes but the old cache is still visible. Do I need a separate cron setting to clear the cache?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Cold Egg

    (@eric780217)

    Hi @emos123 ,

    Sometimes this was due to some other front server cached it. If you disable cache from lscache, do you still see any cache header?
    Have you changed any cache folder permission?
    Possible to share the URL?

    Best,
    Eric

    Thread Starter emos123

    (@emos123)

    Thank you for the quick reply.

    The site has cloudlare enabled for static files. My problem has already been solved. It turned out that the first time the plugin was started, the cache time was set to 7 days and later it was changed to 30 minutes. However, after the change, there were still files on the server with a lifetime of 7 days that were not deleted. After manual removal, the new cache now works correctly.

    I still have a question about how preload cache crewler works.
    I have the crawler set to renew all caches every 1 hour. I have information in the crawler plugin that has crawled all pages each time. But as far as I can see this crawler just makes a new cache of these pages which do not have any cache. If the site already has a cache done before then it is not replaced. Does it work like this or is it a problem with me?
    If this works as described, I have a question whether it is possible to automatically start the crewler every time the cache is cleared or that the crawler will revive the cache for all pages, even for those for which the cache is already created.

    Hi,

    Yes, it works like that , if crawler sees x-litespeed-cache: hit header, then skip the page and proceed to next page.

    Currently LSCWP doesn’t have such function , but the crawler is periodically running and initiated by WP cron , if you want to make sure it crawls as expected , one suggestion is to set a real system cron job istead of WP cron which requires traffic to trigger , and if all your pages are cached , it may not hit PHP at all therefore won’t trigger the cron.

    Best Regards

    Thread Starter emos123

    (@emos123)

    Hi

    Today I checked that my problem with the old cache was not solved.
    I have set Default Public Cache = 28800s = 480m = 8h
    Should the cache be deleted automatically after 8h and how is it initialized (wp -cron)?
    If I check on the server:

    find /usr/local/lsws/cachedata/priv/* -mmin +680 -type f

    I still see full of old cache files, which should probably be deleted after 8 hours.

    Plugin Support Cold Egg

    (@eric780217)

    Hi,

    Hope this helps, make it find /usr/local/lsws/cachedata/* instead of find /usr/local/lsws/cachedata/priv/*

    Best,
    Eric

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Does Purge Cache work automatically?’ is closed to new replies.