vB seo + litespeed cache

Discussion in 'LiteSpeed Cache' started by NiteWave, Mar 22, 2011.

  1. jdeg

    jdeg New Member

    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.
  2. NiteWave

    NiteWave Administrator

    you can try cache 1 page first -- for example phpinfo() page, to get it working.
    you can do it in rewriterule.
  3. jdeg

    jdeg New Member

    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]
    
  4. NiteWave

    NiteWave Administrator

    I can take a look at your server if you give the access
  5. Home Alone

    Home Alone New Member

    I'm also experiencing these two problems. Did you ever resolve it?
  6. NiteWave

    NiteWave Administrator

    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.
  7. Home Alone

    Home Alone New Member

    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
  8. NiteWave

    NiteWave Administrator

    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.
  9. Home Alone

    Home Alone New Member

    I'm using the default values.
  10. TechGuy

    TechGuy New Member

    What settings did you guys use for Cache Policy, etc? I've installed the plugin, rewrite rules, etc... but still no caching. :(
  11. webizen

    webizen New Member

    for guest caching, the following policy can be used. make sure you have cache storage settings defined.

    To troubleshoot, enable rewrite logging.
  12. freeballt

    freeballt New Member

    What stops this plugin for displaying a cache with the banned message to someone who isn't banned?
  13. semprot

    semprot Member

    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?
  14. webizen

    webizen New Member

    2-CPU license supports caching.

    yes, for vb, you still need the plugin and rewrite rules in .htaccess as shown in the 1st post.
  15. semprot

    semprot Member

    thanks i've tried it.. is there any way to test whether the litespeed caching works?
  16. webizen

    webizen New Member

    LiteSpeed outputs a response header “X-LiteSpeed-Cache: hit” if a request is served from cache.
  17. desifunz

    desifunz New Member

    Use this Cache for Vps

    can i use this cache option for my litespeed vps licence ? please guide me about this ,
  18. NiteWave

    NiteWave Administrator

    No, cache need at least 2-CPU license.
  19. Yogesh Sarkar

    Yogesh Sarkar Banned

    Anyone using this plugin with vb 4.2 and vbseo 3.6? If yes, then does it work properly?
  20. Chris

    Chris New Member

    vBseo and 4.2 don't work fluidly out of the box from what I understand.

Share This Page