#1685: Query cache does not respect TTLs
-----------------------------------+----------------------------------------
 Reporter:  hobodave               |       Owner:  romanb
     Type:  defect                 |      Status:  new   
 Priority:  major                  |   Milestone:  1.0.4 
Component:  Query/Hydration        |     Version:  1.0.3 
 Keywords:  cache caching ttl      |    Has_test:  0     
 Mystatus:  Pending Core Response  |   Has_patch:  1     
-----------------------------------+----------------------------------------
 When configuring the Query cache as follows:

 {{{
     $manager->setAttribute(Doctrine::ATTR_QUERY_CACHE, $cacheDriver);
     $manager->setAttribute(Doctrine::ATTR_QUERY_CACHE_LIFESPAN, 3555);
 }}}

 The query cache correctly caches queries for the specified TTL. However,
 when overriding this TTL for a specific query, as follows:

 {{{
    $query->useQueryCache(true, 400)
 }}}

 the overridden value is ignored. This is due to line 1860 of
 Doctrine_Query_Abstract:

 {{{
 1859        if ($timeToLive !== false) {
 1860            $this->setResultCacheLifeSpan($timeToLive);
 1861        }
 }}}
 This should instead be
 {{{
       $this->setQueryCacheLifeSpan($timeToLive);
 }}}

-- 
Ticket URL: <http://trac.doctrine-project.org/ticket/1685>
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