#1267: Add support for Doctrine query/result caching.
-------------------------------+--------------------------------------------
Reporter: mug...@… | Owner: david
Type: enhancement | Status: new
Priority: normal | Milestone: 1.1
Component: database | Version: 1.0.3
Severity: normal | Keywords:
Has_patch: 1 |
-------------------------------+--------------------------------------------
Changes (by david):
* milestone: 1.0.4 => 1.1
Comment:
I wanted to do that for #1210, but the problem is that you can easily do
{{{
#!php
<?php
$cacheDriver = new Doctrine_Cache_Memcache(array('servers' => $servers,
'compression' => false));
}}}
or
{{{
#!php
<?php
$cacheDriver = new Doctrine_Cache_Apc();
}}}
However, for PDO...
{{{
#!php
<?php
$cacheConn = Doctrine_Manager::connection(new PDO('sqlite::memory:'));
$cacheDriver = new Doctrine_Cache_Db(array('connection' => $cacheConn));
}}}
So things would turn ugly... :(
Also, one can use query-level caches, which of course wouldn't be doable.
Also, if we add this, we should support both manager and connection level
caches.
I was just surprised to figure out that I still haven't moved charset
configuration and init queries to doctrine event listeners (so they're run
on connect, not on initialize); maybe that will open up a possibility to
call a user-defined hook to set up caches?
But, yeah... discuss :)
--
Ticket URL: <http://trac.agavi.org/ticket/1267#comment:1>
Agavi <http://www.agavi.org/>
An MVC Framework for PHP5
_______________________________________________
Agavi Tickets Mailing List
[email protected]
http://lists.agavi.org/mailman/listinfo/tickets