Re: Cache an object, not a view

2007-03-23 Thread nate
That's actually what we're planning on. See here: http://cake.insertdesignhere.com/files/nyphp_presentation.pdf, slide #38. On Mar 23, 7:40 am, "thequietlab" <[EMAIL PROTECTED]> wrote: > well.. > having cache as an object would be definitely more robust as one can > overwrite the cake default be

Re: Cache an object, not a view

2007-03-23 Thread Copot
I think this is what you are looking for. http://rossoft.wordpress.com/2006/03/15/cache-objects-component/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

Re: Cache an object, not a view

2007-03-23 Thread thequietlab
well.. having cache as an object would be definitely more robust as one can overwrite the cake default behaviour with he's own cache handlers (eaccelerator,memcache etc..) and keep everything clean & clear. So maybe think about moving real cache functionality there instead of removing it ? ;) bt

Re: Cache an object, not a view

2007-03-23 Thread Larry E. Masters aka PhpNut
On 3/23/07, thequietlab <[EMAIL PROTECTED]> wrote: > > > maybe I confused something .. but I'm looking at 'cake/libs/ > cache.php' (v.1.2) - this one definitely interacts with database Ignore that file, it is in never used by the core, and I doubt anyone is using it anywhere else. I plan to remo

Re: Cache an object, not a view

2007-03-23 Thread thequietlab
maybe I confused something .. but I'm looking at 'cake/libs/ cache.php' (v.1.2) - this one definitely interacts with database On 23 Mar, 00:27, "Grant Cox" <[EMAIL PROTECTED]> wrote: > Where are you looking? Thecache() function in cake/basics.php writes > to a file. --~--~-~--~~--

Re: Cache an object, not a view

2007-03-22 Thread Grant Cox
Where are you looking? The cache() function in cake/basics.php writes to a file. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To u

Re: Cache an object, not a view

2007-03-22 Thread thequietlab
I just noticed that cake's Cache class extends Model and is working on a database to save and retrieve cached data. It's kind of strange since caching should be used to NOT hit a database to save this additional overhead. I saw different ways of caching data using files and shared memory but it's

Re: Cache an object, not a view

2007-03-03 Thread Grant Cox
You should keep all of your data storage functions on the model. So either app_model if it needs to apply to all, or just the particular model you want. Of course there will be cases where the data you want to store is not particular to any model, and it makes more sense to save/load from the co

Re: Cache an object, not a view

2007-03-02 Thread phirschybar
Where would those first 2 functions go, ideally? In app_controller.php? Still getting feet warm with cake. Thanks. On Mar 2, 12:50 pm, "Mandy" <[EMAIL PROTECTED]> wrote: > http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html > > On Mar 2, 3:32 pm, "phirschybar" <[EMAIL PROTECTED]> wro

Re: Cache an object, not a view

2007-03-02 Thread nate
http://php.net/serialize On Mar 1, 10:05 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > I see lots of info on caching views in the manual but I am wondering > of I can cache an object as easily. Just a simple array of data so > that I do not have to hit the DB on every page. --~--~-~--~

Re: Cache an object, not a view

2007-03-02 Thread Mandy
http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html On Mar 2, 3:32 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > well gee. There you have it ;). Thanks. > > On Mar 1, 11:03 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > > > > >http://bakery.cakephp.org/articles/view/249 > > > phirschy

Re: Cache an object, not a view

2007-03-02 Thread phirschybar
well gee. There you have it ;). Thanks. On Mar 1, 11:03 pm, "Grant Cox" <[EMAIL PROTECTED]> wrote: > http://bakery.cakephp.org/articles/view/249 > > phirschybar wrote: > > I see lots of info on caching views in the manual but I am wondering > > of I can cache an object as easily. Just a simple ar

Re: Cache an object, not a view

2007-03-01 Thread Grant Cox
http://bakery.cakephp.org/articles/view/249 phirschybar wrote: > I see lots of info on caching views in the manual but I am wondering > of I can cache an object as easily. Just a simple array of data so > that I do not have to hit the DB on every page. --~--~-~--~~~-

Cache an object, not a view

2007-03-01 Thread phirschybar
I see lots of info on caching views in the manual but I am wondering of I can cache an object as easily. Just a simple array of data so that I do not have to hit the DB on every page. --~--~-~--~~~---~--~~ You received this message because you are subscribed to th