Home » Caching » Cache_Lite » Bug #7061
Cache-Control fails
Details
| Submitted | 2006-03-08 12:51 UTC |
|---|---|
| From | jj at learnbit dot com |
| Assigned | fab |
| Status | No Feedback |
| Package | Cache_Lite |
| PHP Version | 4.4.1 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-03-08 12:51 UTC] jj at learnbit dot com
Description:
------------
I found a strange error while using Cache_Lite. Sometimes the "Cache-Control" fails and the modificationtime of the files is set to a timestamp in the past, so that the data gets invalid.
I think the problem is in Lite.php the following line:
clearstatcache(); // because the filesize can be cached by PHP itself...
The line was removed from version 1.41 to 1.42. With prior versions of the Cache_Lite Package everything works fine. After upgrading to the newest version the script doesn't work like before.
Unfortunatelly i was not able to create a testscript to reproduce the error, but I think it the clearstatcache-command was necessary.
At the moment my resolution is to turn of read- and write -controlling.
[2006-03-10 22:58 UTC] fab at php dot net
I will investigate but I don't understand what is exactly the diagnostic ? The feature is "when a cache corruption is detected by read or write control, the corresponding cache file is invalidated and the cache is not hit (so it is rebuilt)" but it has to be completly transparent for the end user.
You get a sort of error ?