#5550: Fix concurrent access of file based cache at expiry time breaks
-------------------------------+--------------------------------------------
    Reporter:  timr            |          Type:  Bug   
      Status:  new             |      Priority:  Medium
   Milestone:  1.2.x.x         |     Component:  Cache 
     Version:  RC2             |      Severity:  Normal
    Keywords:                  |   Php_version:  n/a   
Cake_version:  1.2.0.7296 RC2  |  
-------------------------------+--------------------------------------------
 I believe this patch actually fixes the bug I was trying to fix in patch
 https://trac.cakephp.org/ticket/5541

 If you did multiple ajax requests (technically they didn't have to be
 ajax) and they both hit at the same time while the cache was expired, one
 of them would error out.

 By turning locking on (which was broken before issue 5541), I hoped to
 avoid that problem, but it seems the existing locking wasn't good enough.

 I added lock and unlock methods to the file object and had the file cache
 use them. That way it can lock during the multiple reads it does, and
 upgrade the lock if the cache is expired.

-- 
Ticket URL: <https://trac.cakephp.org/ticket/5550>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design 
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. 
Our primary goal is to provide a structured framework that enables PHP users at 
all levels to rapidly develop robust web applications, without any loss to 
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---

  • [CakePHP : The Rapid Dev... CakePHP : The Rapid Development Framework for PHP

Reply via email to