![]() |
Litespeed cache + vB + vBSEO conflicts/issues ?
Thanks to Mert over at vBSEO, I got a test license installed on local server, from what I can see, this is what is happening. vBulletin varnish xml plugin has extra code to assign custom cookies to members and guests (session prefix + imgloggedin yes) and also code to strip guest visitors of the session id/hash so that varnish will cache guests without cookies. Litespeed cache's .htaccess tries to match these plugin cookies so you're telling litespeed cache to cache php pages where imloggedin=yes isn't set and where userid/password cookie isn't set.
default litespeed cache .htaccess i am using Code:
RewriteCond %{HTTP_COOKIE} !zzimloggedin=yesPHP Code:
vBSEO Disabled This is what i see with vbseo disabled, only zzlastactivity and zzlastvisit cookies are set when varnish plugin enabled as it strips sessionid/hash. http://vbtechsupport.com/litespeed/v...essionhash.png Header for vBSEO disabled with varnish plugin enabled http://vbtechsupport.com/litespeed/v...hah_header.png vBSEO Enabled Now when you enable vbseo, session id/hash for guests is reintroduced along with vbseo_loggedin=yes/deleted for members/guests, which in theory if you used varnish cache (in apache+varnish setup), varnish wouldn't cache the vbseo page as it has cookies vbseo_loggedin so varnish vcl would need adjusting. But it doesn't explain why litespeed cache isn't caching the page other than proper detection of vbseo_loggedin cookie in htaccess ? http://vbtechsupport.com/litespeed/v...essionhash.png Header when vBSEO enabled with Varnish plugin enabled http://vbtechsupport.com/litespeed/v...ash_header.png litespeed htaccess might need additional for guests caching somewhere ? Code:
RewriteCond %{HTTP_COOKIE} vbseo_loggedin=deleted |
NiteWave asked me to try this htaccess for vBSEO + litespeed cache, while it works to allow vBSEO to function, litespeed isn't caching the pages
Code:
|
The expire time of cookie "vbseo_loggedin" is set to 1 second earlier than the current time, maybe it is intended to remove that cookie, not to send it back to web server as request cookie.
If that is the case, just test if "vbseo_loggedin" presents, if it does, user logged in, no cache, if it does not, cache the page. |
I overlooked this post... so following may works:
Quote:
|
Thanks i think this is same as the code you set me last time (that didn't work right). Will test this again :)
|
there is only 1 but important difference:
RewriteCond %{HTTP_COOKIE} vbseo_loggedin=deleted changed to RewriteCond %{HTTP_COOKIE} !vbseo_loggedin |
hi eva have you really got any working .htaccess for vbseo+litespeed combination?
|
not yet, been a bit busy lately but will get back to testing soon
Quote:
|
Based on my investigation on this, the latest ruleset should work, however, there are a few URLs need to be excluded like "/login/wait", so the cache related rules are
Code:
#%LiteSpeed Cache rules |
so these rules should be added along with vbseo normal rules ?
|
| All times are GMT -7. The time now is 07:41 PM. |