• Resolved ionlineptyltd

    (@ionlineptyltd)


    Hi Litespeed Support Team,

    We have installed a Litespeed on a vps along with the Litespeed caching plugin. No matter what I do, I can never get a hit on the cache for this site -https://livelyliving.com.au/

    I have included some debug logs but they are not super helpful.

    11/20/19 09:43:04.920 [103.95.1.177:34223 1 qa6] 💓 ------GET HTTP/1.1 (HTTPS)  /
    11/20/19 09:43:04.920 [103.95.1.177:34223 1 qa6] Query String: 
    11/20/19 09:43:04.920 [103.95.1.177:34223 1 qa6] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
    11/20/19 09:43:04.920 [103.95.1.177:34223 1 qa6] Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
    11/20/19 09:43:04.920 [103.95.1.177:34223 1 qa6] Accept Encoding: gzip, deflate, br
    11/20/19 09:43:04.920 [103.95.1.177:34223 1 qa6] X-LSCACHE: true
    11/20/19 09:43:05.665 [103.95.1.177:34223 1 qa6] [Router] get_uid: 0 => LSC_Router::get_uid()@215 => LSC_Router::get_role()@234 => LSC_Config->in_exclude_optimization_roles()@351 => LSC->after_user_init()@234
    11/20/19 09:43:05.666 [103.95.1.177:34223 1 qa6] [Router] get_role: 
    11/20/19 09:43:05.666 [103.95.1.177:34223 1 qa6] Media init
    11/20/19 09:43:05.666 [103.95.1.177:34223 1 qa6] CDN init
    11/20/19 09:43:05.666 [103.95.1.177:34223 1 qa6] Task init
    11/20/19 09:43:05.667 [103.95.1.177:34223 1 qa6] [Router] LSCWP_CTRL bypassed empty
    11/20/19 09:43:05.667 [103.95.1.177:34223 1 qa6] GUI init
    11/20/19 09:43:05.701 [103.95.1.177:34223 1 qa6] [Ctrl] X Cache_control init on
    11/20/19 09:43:05.899 [103.95.1.177:34223 1 qa6] [Core] Footer hook called
    11/20/19 09:43:05.902 [103.95.1.177:34223 1 qa6] [Core] Footer check passed
    11/20/19 09:43:05.902 [103.95.1.177:34223 1 qa6] [Router] get_role: 
    11/20/19 09:43:05.903 [103.95.1.177:34223 1 qa6] [Router] get_role: 
    11/20/19 09:43:05.903 [103.95.1.177:34223 1 qa6] [Vary] role id: failed, guest
    11/20/19 09:43:05.903 [103.95.1.177:34223 1 qa6] [Router] get_role: 
    11/20/19 09:43:05.904 [103.95.1.177:34223 1 qa6] [Router] get_role: 
    11/20/19 09:43:05.904 [103.95.1.177:34223 1 qa6] [Vary] no custimzed vary 
    11/20/19 09:43:05.904 [103.95.1.177:34223 1 qa6] X-LiteSpeed-Cache-Control: public,max-age=604800
    11/20/19 09:43:05.905 [103.95.1.177:34223 1 qa6] X-LiteSpeed-Tag: 6b3_front,6b3_URL.6666cd76f96956469e7be39d750cc7d9,6b3_F,6b3_Po.6,6b3_PGS,6b3_
    11/20/19 09:43:05.906 [103.95.1.177:34223 1 qa6] [Core] Footer check passed
    11/20/19 09:43:05.906 [103.95.1.177:34223 1 qa6] [Media] finalize
    11/20/19 09:43:05.906 [103.95.1.177:34223 1 qa6] GUI bypassed by no counter
    11/20/19 09:43:05.907 [103.95.1.177:34223 1 qa6] [Router] get_role: 
    11/20/19 09:43:05.907 [103.95.1.177:34223 1 qa6] [Optm] start
    11/20/19 09:43:05.907 [103.95.1.177:34223 1 qa6] CDN bypass
    11/20/19 09:43:05.907 [103.95.1.177:34223 1 qa6] End response
    --------------------------------------------------------------------------------
    
    11/20/19 09:43:07.367 [103.95.1.177:34223 1 j6L] 💓 ------GET HTTP/1.1 (HTTPS)  /app/themes/ionline/assets/lightbox/lightbox.min.map
    11/20/19 09:43:07.367 [103.95.1.177:34223 1 j6L] Query String: 
    11/20/19 09:43:07.367 [103.95.1.177:34223 1 j6L] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
    11/20/19 09:43:07.367 [103.95.1.177:34223 1 j6L] Accept: 
    11/20/19 09:43:07.367 [103.95.1.177:34223 1 j6L] Accept Encoding: gzip, deflate, br
    11/20/19 09:43:07.367 [103.95.1.177:34223 1 j6L] X-LSCACHE: true
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] 💓 ------GET HTTP/1.1 (HTTPS)  /wp-json/contact-form-7/v1/contact-forms/229/refill
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] Query String: 
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] HTTP_REFERER: https://livelyliving.com.au/
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] Accept: application/json, text/javascript, */*; q=0.01
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] Accept Encoding: gzip, deflate, br
    11/20/19 09:43:07.700 [103.95.1.177:34223 1 xQm] X-LSCACHE: true
    11/20/19 09:43:08.083 [103.95.1.177:34223 1 j6L] [Router] get_uid: 0 => LSC_Router::get_uid()@215 => LSC_Router::get_role()@234 => LSC_Config->in_exclude_optimization_roles()@351 => LSC->after_user_init()@234
    11/20/19 09:43:08.083 [103.95.1.177:34223 1 j6L] [Router] get_role: 
    11/20/19 09:43:08.083 [103.95.1.177:34223 1 j6L] Media init
    11/20/19 09:43:08.083 [103.95.1.177:34223 1 j6L] CDN init
    11/20/19 09:43:08.084 [103.95.1.177:34223 1 j6L] Task init
    11/20/19 09:43:08.084 [103.95.1.177:34223 1 j6L] [Router] LSCWP_CTRL bypassed empty
    11/20/19 09:43:08.084 [103.95.1.177:34223 1 j6L] GUI init
    11/20/19 09:43:08.127 [103.95.1.177:34223 1 j6L] [Ctrl] X Cache_control init on
    11/20/19 09:43:08.220 [103.95.1.177:34223 1 j6L] [Core] Footer hook called
    11/20/19 09:43:08.223 [103.95.1.177:34223 1 j6L] [Core] Footer check passed
    11/20/19 09:43:08.224 [103.95.1.177:34223 1 j6L] [Router] get_role: 
    11/20/19 09:43:08.224 [103.95.1.177:34223 1 j6L] [Router] get_role: 
    11/20/19 09:43:08.224 [103.95.1.177:34223 1 j6L] [Vary] role id: failed, guest
    11/20/19 09:43:08.225 [103.95.1.177:34223 1 j6L] [Router] get_role: 
    11/20/19 09:43:08.225 [103.95.1.177:34223 1 j6L] [Router] get_role: 
    11/20/19 09:43:08.225 [103.95.1.177:34223 1 j6L] [Vary] no custimzed vary 
    11/20/19 09:43:08.226 [103.95.1.177:34223 1 j6L] X-LiteSpeed-Cache-Control: public,max-age=3600
    11/20/19 09:43:08.226 [103.95.1.177:34223 1 j6L] X-LiteSpeed-Tag: 6b3_404,6b3_URL.404e3e0c60a654628179d096b2c6585c,6b3_ERR.404,6b3_
    11/20/19 09:43:08.227 [103.95.1.177:34223 1 j6L] [Core] Footer check passed
    11/20/19 09:43:08.227 [103.95.1.177:34223 1 j6L] [Media] finalize
    11/20/19 09:43:08.227 [103.95.1.177:34223 1 j6L] GUI bypassed by no counter
    11/20/19 09:43:08.228 [103.95.1.177:34223 1 j6L] [Router] get_role: 
    11/20/19 09:43:08.228 [103.95.1.177:34223 1 j6L] [Optm] start
    11/20/19 09:43:08.228 [103.95.1.177:34223 1 j6L] CDN bypass
    11/20/19 09:43:08.229 [103.95.1.177:34223 1 j6L] End response
    --------------------------------------------------------------------------------
    
    11/20/19 09:43:08.352 [103.95.1.177:34223 1 xQm] [Router] get_uid: 0 => LSC_Router::get_uid()@215 => LSC_Router::get_role()@234 => LSC_Config->in_exclude_optimization_roles()@351 => LSC->after_user_init()@234
    11/20/19 09:43:08.353 [103.95.1.177:34223 1 xQm] [Router] get_role: 
    11/20/19 09:43:08.353 [103.95.1.177:34223 1 xQm] Media init
    11/20/19 09:43:08.353 [103.95.1.177:34223 1 xQm] CDN init
    11/20/19 09:43:08.353 [103.95.1.177:34223 1 xQm] Task init
    11/20/19 09:43:08.354 [103.95.1.177:34223 1 xQm] [Router] LSCWP_CTRL bypassed empty
    11/20/19 09:43:08.354 [103.95.1.177:34223 1 xQm] GUI init
    11/20/19 09:43:08.387 [103.95.1.177:34223 1 xQm] [Ctrl] X Cache_control init on
    11/20/19 09:43:08.479 [103.95.1.177:34223 1 xQm] [Vary] Rest API init disabled vary change
    11/20/19 09:43:08.480 [103.95.1.177:34223 1 xQm] 3rd cf7 set no change vary
    11/20/19 09:43:08.502 [103.95.1.177:34223 1 xQm] [REST] ✅ Internal REST ON [filter] rest_request_before_callbacks
    11/20/19 09:43:08.503 [103.95.1.177:34223 1 xQm] [REST] ❎ Internal REST OFF [filter] rest_request_after_callbacks
    11/20/19 09:43:08.507 [103.95.1.177:34223 1 xQm] [Core] CHK html bypass: miss footer const
    11/20/19 09:43:08.507 [103.95.1.177:34223 1 xQm] 3rd party woocommerce not cache due to null cart
    11/20/19 09:43:08.508 [103.95.1.177:34223 1 xQm] [Ctrl] X Cache_control -> no Cache ( api ) => LSC_Control::set_nocache()@317 => LSC_API::set_nocache()@139 => LSC_ThirdParty_WooCommerce->set_control()@621
    11/20/19 09:43:08.508 [103.95.1.177:34223 1 xQm] [Ctrl] not cacheable after api_control
    11/20/19 09:43:08.508 [103.95.1.177:34223 1 xQm] [Router] get_role: 
    11/20/19 09:43:08.508 [103.95.1.177:34223 1 xQm] [Vary] role id: failed, guest
    11/20/19 09:43:08.508 [103.95.1.177:34223 1 xQm] [Router] get_role: 
    11/20/19 09:43:08.508 [103.95.1.177:34223 1 xQm] [Router] get_role: 
    11/20/19 09:43:08.509 [103.95.1.177:34223 1 xQm] [Vary] no custimzed vary 
    11/20/19 09:43:08.509 [103.95.1.177:34223 1 xQm] [Core] Silence Comment due to REST/AJAX
    11/20/19 09:43:08.509 [103.95.1.177:34223 1 xQm] X-LiteSpeed-Cache-Control: no-cache
    11/20/19 09:43:08.509 [103.95.1.177:34223 1 xQm] [Core] CHK html bypass: miss footer const
    11/20/19 09:43:08.509 [103.95.1.177:34223 1 xQm] [Media] bypass: Not frontend HTML type
    11/20/19 09:43:08.509 [103.95.1.177:34223 1 xQm] GUI bypassed by no counter
    11/20/19 09:43:08.510 [103.95.1.177:34223 1 xQm] [Optm] bypass: Not frontend HTML type
    11/20/19 09:43:08.510 [103.95.1.177:34223 1 xQm] CDN bypass
    11/20/19 09:43:08.510 [103.95.1.177:34223 1 xQm] End response
    --------------------------------------------------------------------------------

    Refreshing the page never gets a hit and always a miss.

    I can see the /lscache directory filled but nothing is being served.

    Report number: IPCXHWTF

    I have set up this plugin and server config on a couple of servers/sites now and it seems to be pretty random when a cached paged is hit or missed. I love the plugin and the server but need a bit of help to figure it out 100%. I have followed the WIKI and it is all installed correctly (even memcached).

    Any help would go a long way as we are migrating all our hosting VM’s to litespeed over the next couple of weeks and need to have this working properly for our clients thanks so much.

    Matt (iOnline)

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ionlineptyltd

    (@ionlineptyltd)

    FYI, for the moment I have completely disabled the auto purge functions.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Could you please try :

    1. disable LSCWP

    2. check your .htaccess, remove all the LSCWP-related-rules if there is any left, it should be wrapped by word like “LSCWP rule ..”

    3. remove everything inside of “lscache” directory

    4. add this code into htaccess

    RewriteEngine on
    CacheLookup on
    RewriteRule .* - [E=cache-control:max-age=120]

    5. access any page of your sites , refresh it like twice or thrice , now check if you see cache hit header?

    6. either in step 5 you see or not see the header, please remove the above rule you added in step 4 and empty the “lscache” directory again.

    Best regards,

    • This reply was modified 6 years, 5 months ago by qtwrk.
    Thread Starter ionlineptyltd

    (@ionlineptyltd)

    perfect thank you!
    turns out that works!
    i think it might be that there were some other htaccess rules in there messing it from other caching plugins.
    should I reintsall the litespeed plugin now?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    Yes, if with above rule you can see cache hit header, then yes , remove that rule , reinstall/re-enable LSCWP and try again

    Best regards,

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

The topic ‘Litespeed WP Cache Plugin Always Misses’ is closed to new replies.