Our cache stopped functioning properly.
We're using cache for vbulletin+vbseo. Also, using litespeed Enterprise. We had to revert back to 4.2.6
Users were seeing cached pages. Complaining about not seeing new posts, have to hard refresh. Pages that weren't supposed to be cached were being cached, like the login & logout pages.
Our setup is pretty simple, if pages are viewed by guests, they are cached to 240 seconds. If members, then not cached at all.
## Here is excerpt of .htaccess cache routine
// here is where we say don't cache if user that is logged in
// here is where we set cookie for users that are logged in
//Here are server settings for cache
We're using cache for vbulletin+vbseo. Also, using litespeed Enterprise. We had to revert back to 4.2.6
Users were seeing cached pages. Complaining about not seeing new posts, have to hard refresh. Pages that weren't supposed to be cached were being cached, like the login & logout pages.
Our setup is pretty simple, if pages are viewed by guests, they are cached to 240 seconds. If members, then not cached at all.
## Here is excerpt of .htaccess cache routine
RewriteCond %{HTTP_COOKIE} !bbimloggedin=yes
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{REQUEST_URI} !^(login|register|usercp|private|profile|cron|image|search)\.php$
RewriteCond %{REQUEST_URI} !^admincp
RewriteRule ^(.*)?$ - [L,E=Cache-Control:max-age=240]
RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{REQUEST_URI} !^(login|register|usercp|private|profile|cron|image|search)\.php$
RewriteCond %{REQUEST_URI} !^admincp
RewriteRule ^(.*)?$ - [L,E=Cache-Control:max-age=240]
if ( $vbulletin->userinfo['userid'] || $vbulletin->options["mob_detected_device_name"])
{
//header('X-Accel-Expires: 0');
header('X-LiteSpeed-Cache-Control: no-cache');
};
{
//header('X-Accel-Expires: 0');
header('X-LiteSpeed-Cache-Control: no-cache');
};
if ($send_cookies AND $cookieuser)
{
// Cookie user
vbsetcookie('imloggedin', 'yes', true, true, true);
}
else
{
// Not permanent
vbsetcookie('imloggedin', 'yes', false, true, true);
}
{
// Cookie user
vbsetcookie('imloggedin', 'yes', true, true, true);
}
else
{
// Not permanent
vbsetcookie('imloggedin', 'yes', false, true, true);
}
Enable Cache
No
Cache Expire Time (seconds)
Not Set
Cache Stale Age (seconds)
Not Set
Cache Request with Query String
Yes
Cache Request with Cookie
Yes
Cache Response with Cookie
Yes
Ignore Request Cache-Control
No
Ignore Response Cache-Control
No
Enable Private Cache
No
Private Cache Expire Time (seconds)
Not Set
No
Cache Expire Time (seconds)
Not Set
Cache Stale Age (seconds)
Not Set
Cache Request with Query String
Yes
Cache Request with Cookie
Yes
Cache Response with Cookie
Yes
Ignore Request Cache-Control
No
Ignore Response Cache-Control
No
Enable Private Cache
No
Private Cache Expire Time (seconds)
Not Set
Last edited: