Hi everyone ! I'm a newcomer on this mailing list. I hope I will find some help and, why not, help others.
/(Please excuse my english, I really try to do my best.)/ I'm working on my first project with ZF2 (I did a few ones with ZF1) and Doctrine. I was wondering how to cache some queries result as I have some pages fetching a lot of not-so-often-updated-data. I looked at the Doctrine doc http://docs.doctrine-project.org/en/latest/reference/caching.html I saw some tutorial on how to use cache with a classic db adapter and tablegateway. (http://samsonasik.wordpress.com/2012/09/27/zend-framework-2-using-zendcache-and-hydratingresultset-to-save-database-resultset/) I thought I could extend the repository object for each of my entity to override the fetchAll method (and others) and inject some cache here, but I'm not sure that is the best way to achieve this. I think I know now how to setup the cache config but I'm not sure how to use it properly in my app, how to retrieve the cache object, how to fetch data from it,... If someone could help me, show me an example, anything, I would really appreciate it. Thank you, sorry to bother you with something probably trivial. Paul -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/ZF2-Doctrine2-Caching-tp4658242.html Sent from the Zend Framework mailing list archive at Nabble.com. -- List: [email protected] Info: http://framework.zend.com/archives Unsubscribe: [email protected]
