#1637: Doctrine::ATTR_RESULT_CACHE_LIFESPAN is not respected
----------------------+-----------------------------------------------------
  Reporter:  esycat   |       Owner:  romanb               
      Type:  defect   |      Status:  new                  
  Priority:  major    |   Milestone:  Unknown              
 Component:  Caching  |     Version:  1.0.3                
Resolution:           |    Keywords:                       
  Has_test:  1        |    Mystatus:  Pending Core Response
 Has_patch:  0        |  
----------------------+-----------------------------------------------------
Comment (by esycat):

 I believe I have found what is the problem.

 `useResultCache()` method of Doctrine_Query_Abstract class has second
 parameter `$timeToLive`, which is mentioned only in the API Documentation,
 but not in the User Manual. Regardless of it's value `$timeToLive` passes
 to the `setResultCacheLifeSpan()` method. So, if I call just
 `useResultCache(true)` for query, it overwrites value of `_resultCacheTTL`
 in any way. It's not a desired behavior, I guess.

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1637#comment:1>
Doctrine <http://www.phpdoctrine.org>
PHP Doctrine Object Relational Mapper
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"doctrine-svn" 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.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---

Reply via email to