Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.8.3

Request #19712 clearstatcache use on write only
Submitted: 2012-11-20 12:37 UTC
From: gamesh Assigned:
Status: Open Package: Cache_Lite (version 1.7.15)
PHP Version: 5.2.17 OS: Windows Server 2008 R2
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 - 26 = ?

 
 [2012-11-20 12:37 UTC] gamesh (Justinas Urbanavicius)
Description: ------------ I would like to propose to use clearstatcache() only on writing to cache, as it should occur relatively rarely compared to reads form cache. And since now you flush stat cache on every read, PHP can't use real path stat cache for file_exists and other file operations related to paths. It decreases performance. and the only time anything changes is when you write to cache - create new files, or clean cache so maybe it would be wise to clear it only on write and clean.

Comments