vB seo + litespeed cache

jdeg

Active Member
#21
I did a quick test on another one of my sites with the default vbseo rules.

Configuring things with the setup in post 1 of this thread returns a 404 error on every page. (L removed from last vbseo rule and included in last cache rule)

Removing the L in the last cache rule and replacing in the last vbseo rule as in post 9 does not result in errors, but it does not appear anything is cached. Total cache hits and cache hits/sec remain at 0 when viewing real-time statistics.
 

jdeg

Active Member
#23
you can try cache 1 page first -- for example phpinfo() page, to get it working.
you can do it in rewriterule.
I tried that - still nothing.

This is what my rules look like:

Code:
RewriteEngine On

Header unset ETag
FileETag None

ExpiresActive on

    ExpiresByType image/jpg "access plus 1 months"
    ExpiresByType image/gif "access plus 1 months"
    ExpiresByType image/jpeg "access plus 1 months"
    ExpiresByType image/png "access plus 1 months"

RewriteCond %{HTTP_HOST} !^nikonites\.com
RewriteRule (.*) http://nikonites.com/$1 [R=301,L]

#rules for litespeed cache:
RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
#RewriteCond %{ORG_REQ_URI} ^/(index\.php|)$
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} ^$
RewriteRule (.*) - [E=Cache-Control:max-age=120]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images|api\.php)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
 
#25
Many of my users are complaining about being logged out, and when I look at it in firebug it doesn't seem to have no-cache in response.

I also had to disable the plugin because if a user is IP banned, it will show an IP banned message to other users.
I'm also experiencing these two problems. Did you ever resolve it?
 
#26
I think the "issue" is because guest cache not set up correctly somewhere.

We've enabled vb seo cache for quite a few users and not experienced this issue so far.
 
#27
I think the "issue" is because guest cache not set up correctly somewhere.

We've enabled vb seo cache for quite a few users and not experienced this issue so far.
This is my .htaccess file:

RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteRule (.*)$ http://www.domain.com/$1 [R=301,L]

#rules for litespeed cache:
RewriteCond %{HTTP_COOKIE} !vbseo_loggedin=yes
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
#RewriteCond %{ORG_REQ_URI} ^/(index\.php|)$
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{QUERY_STRING} ^$
RewriteRule (.*) - [E=Cache-Control:max-age=60]


RewriteRule ^view_(.*).htm$ view.php?pg=$1

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|showwiki)
RewriteRule ^((archive/)?(.*\.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|showwiki)/
RewriteRule ^(.+)$ vbseo.php [QSA]

RewriteCond %{HTTP_HOST} ^domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.com$
RewriteRule ^vb/?$ "http\:\/\/www\.domain\.com" [R=301,L]

php_flag display_errors off

RewriteCond %{HTTP_REFERER} !^http://domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.domain.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://games.espn.go.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://games.espn.go.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F]

This is my cache policy:

Enable Cache No
Cache Expire Time (seconds) Not Set
Cache Request with Query String Yes
Cache Request with Cookie Yes
Cache Response with Cookie Yes
Ignore Request Cache-Control Yes
Ignore Response Cache-Control Yes
Enable Private Cache No
Private Cache Expire Time (seconds)120
 
#28
the rules looks fine.
Code:
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
since bb_userid and bb_password is customizable by vB, to be sure you're using the same cookie name - if you're using vb_userid and vb_passwords etc, please change above rules as well.
 
#29
the rules looks fine.
Code:
RewriteCond %{HTTP_COOKIE} !bb_userid=
RewriteCond %{HTTP_COOKIE} !bb_password=
since bb_userid and bb_password is customizable by vB, to be sure you're using the same cookie name - if you're using vb_userid and vb_passwords etc, please change above rules as well.
I'm using the default values.
 

webizen

Well-Known Member
#31
for guest caching, the following policy can be used. make sure you have cache storage settings defined.

Enable Cache No
Cache Expire Time (seconds) Not Set
Cache Request with Query String Not Set
Cache Request with Cookie Not Set
Cache Response with Cookie Not Set
Ignore Request Cache-Control Not Set
Ignore Response Cache-Control Not Set
Enable Private Cache Not Set
Private Cache Expire Time (seconds) Not Set
To troubleshoot, enable rewrite logging.
 

semprot

Well-Known Member
#33
I used vbulletin too, and litespeed with 2 cpu license, can 2 cpu license do caching?
I don't use vbseo, do i need to use htaccess on first post too?
 
Top