Litespeed cache + vB + vBSEO conflicts/issues ?

Discussion in 'LiteSpeed Cache General' started by eva2000, Jan 31, 2011.

  1. Clockwork

    Clockwork Well-Known Member

    okay, it seems to work with this rewrite rule

    #%LiteSpeed Cache rules
    RewriteCond %{HTTP_COOKIE} !vbseo_loggedin
    RewriteCond %{ORG_REQ_URI} !(login/wait|admincp|modcp|(login|register|usercp|private|profile|cron|image)\.php)
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    RewriteCond %{QUERY_STRING} ^$
    RewriteRule (.*) - [L,E=Cache-Control:max-age=120]
    also don't forget to remove the last rule parameter from

    #RewriteRule ^(.+)$ vbseo.php [[COLOR="red"]L,[/COLOR]QSA]
    otherwise it will not work :)

    However, this needs more testing, I'll add this on a big board this week.

    p.s. I've never seen a login/wait part in a vbseo url, is this correct?

    p.p.s. if you use lsws 4.0.20 don't forget to update your product according eva's blog. You also need to activate the "Send X-Accel-Expires header for logged in users" plugin because it's disabled by default. With this configuration you can also disable the "SET COOKIE FOR LOGGED IN USERS" plugin because it isn't required anymore.
    Last edited: Mar 1, 2011
  2. jdeg

    jdeg Active Member

    Clockwork - I'm curious if these are the settings you ended up finally using? I can't seem to get things to cache at all with the rules after VBSEO rules. If they are before the VBSEO rules I get 404 errors.

    The strange thing is directories are being created in /tmp/diskcache, but no files. I'm also not seeing any cache hits in the real-time stats.

    Any ideas?
    Last edited: Sep 12, 2011

Share This Page