LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LiteSpeed Cache > Wrong cache hit

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-09-2011, 05:21 PM
IrPr IrPr is offline
Senior Member
 
Join Date: Jul 2008
Posts: 147
Default Wrong cache hit

Hi there,
I'm seeing a very unexpected and unknown act by Litespeed cache feature

Here is my cache Policy config:
Code:
  <cache>
    <storage>
      <cacheStorePath>/dev/shm/lswscache</cacheStorePath>
      <maxCacheObjSize>102400</maxCacheObjSize>
    </storage>
    <cachePolicy>
      <enableCache>0</enableCache>
      <expireInSeconds></expireInSeconds>
      <qsCache>1</qsCache>
      <reqCookieCache>1</reqCookieCache>
      <respCookieCache>1</respCookieCache>
      <ignoreReqCacheCtrl>1</ignoreReqCacheCtrl>
      <ignoreRespCacheCtrl>1</ignoreRespCacheCtrl>
    </cachePolicy>
  </cache>
here is my full htaccess with cache-control rewrite rule:
Code:
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(jpg|gif|jpeg|png|css|ico|js|swf|zip|rar|mp3|exe) [NC]
RewriteRule . /index.php [L,E=Cache-Control:max-age=900]
</IfModule>
This is a big wordpress which I've enabled cache for its contents
They're using SEO plugin and urls are in this format:

/year/month/day/title/

While most of links are cached and fetched properly sometimes a few urls are fetching wrong content instead
for example /2011/06/09/title1 returns the content of another post, /2011/06/09/title2

It returns wrong content for all requests for that url till pruning cache dir while the other cached contents are working properly

I'm using Cache feature on many servers with the same rules for WP, all of them are working like a charm but this one

Please note that its not occurring for WP only, there are other CMS such as PHPNuke which the same issue is happening with SEO rewrited urls, and the most unexpected thing is that they're fetching the contents from each other websites!
The only matching thing between these URLs is that they're non-existing files SEO rewrite rules, but not the same cond/rules

Seems there is a problem while saving the item to the cache to me

PS: All 4.1x versions are affected

Any idea is welcome

Thanks
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:40 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.