• Resolved keith007

    (@keith007)


    Hi All,

    I have litespeed set up on 5 dedicated servers and most sites when we visit show cache miss, but after revisiting the same page then shows cache hit
    They all have the wordpress litespeed plugin installed and set up for cache times

    We have set the public cache to 2419200 seconds and still we get cache missed on first visit

    What’s the best way to diagnose why this is? and how to ensure pages are cached for 4 weeks at a time

    Regards

    Keith

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter keith007

    (@keith007)

    Very little responses across the forum is this still live forum or every gone away

    Keith

    Hi Keith,
    to my understanding the cache is populated on 1st visit. Unless you use the crawler to warm up the cache. See Christian’s topic 15 places below yours.
    Hope this helps

    Thread Starter keith007

    (@keith007)

    Hi and thanks for the response

    I have plenty of visitors browsing the site, but when I browse it ie next day and check the headers it says cache miss, then cache hit for every time I visit
    Its like its cache for me only even though its public
    I have no cookie warning set up as yet just a basic wordpress install

    The crawler to warm up doesnt make any difference

    Im hoping its me and not doing something so obvious and causing it!

    So frustrating as happening across a lot of servers

    Keith

    You need to verify you cache expiration date. If it was 24 hours then will be revalidated every day.

    It’s all depends on the content on your page, if it was dynamic or static.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    even you set TTL 2419200 , it does not always means it will stick that long

    there are certain action you do in wp-admin could lead to cache purge , like change some setting , upgrade a plugin/theme , edit/publish a post …etc

    you can either use crawler to precache the pages

    or you can try to find out why cache is purged by enabling the debug log

    once you enabled debug log, it will log all purge call to /wp-content/debug.purge.log which could give you some hint if something purged cached.

    Best regards,

    Thread Starter keith007

    (@keith007)

    hi all,

    as I use a cookie notice plugin and this changes the output, I have the vary the following in my .htaccess file:
    RewriteEngine on
    CacheLookup on
    RewriteRule .* – [E=Cache-Control:no-autoflush]
    RewriteRule .* – [E=Cache-Vary:cookie_notice_accepted]

    do I have to enter this in the crawler part under simulation settings ie
    Cookie Name: cookie_notice_accepted
    next box: _null
    : true

    Keith

    Plugin Support qtwrk

    (@qtwrk)

    yes

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cache missed on first visit’ is closed to new replies.