Zendcasts Forum

A community of developers who work with the Zend Framework and other enterprise PHP technologies

You are not logged in.

#1 2010-07-27 12:32:03

georgeenciu
New member
From: Bucharest, Romania
Registered: 2010-02-18
Posts: 7
Website

cache a table row

Has anyone tried to cache a table row? And by that I mean using the Zend_Cache and Zend_Db_Table_Row

I have some tables that most of the time have the same data in it, so i find it useless to query the db each time for the same data.

I also tried caching at Zend_Db_Table level as I though that the row object would get the table object (cached) and send the query through it. But this fails each time.

Does anyone have a tip? Thanks!

Offline

#2 2010-12-02 23:29:57

dbanton
New member
Registered: 2010-12-02
Posts: 3

Re: cache a table row

Try this book, Zend Framework 1.8 Web Application Development September 2009, written by Keith Pope.

Offline

#3 2010-12-06 17:12:56

anton
Member
Registered: 2010-10-26
Posts: 10

Re: cache a table row

hye,
the official doc treat your problem.
http://framework.zend.com/manual/en/zen … ction.html

You just cache the result rowset or single row,  when you get it back from the cache, it's not coupled to the DB anymore to be updated but there are ways to reconnect it to the DB.

Reading the official doc should solve your problem if it's as simple as you expose it.

best regards,
Anton

Offline

Board footer

Powered by FluxBB