I have to admin that I have not used caching yet, but the documentation states that cake does the magic for you. http://book.cakephp.org/view/1382/Clearing-the-Cache I understand that it does not matter if there are many associations or not. As long as the Model is used in a cache and the Model gets an UPDATE INSERT DELETE, the cache is cleared.
On 12 Apr., 05:46, David Kullmann <kullmann.da...@gmail.com> wrote: > Jeremy: > > You can refresh caches after a model is saved, just add that into your > code. > > Regarding searching, I don't know if it meets your specific goal but > there are lots of pre-built searching applications that will index > everything for you and refresh their own caches. Maybe it's easier to > use one of those than to make your own. > > -DK > > On Apr 11, 11:31 pm, Jeremy Burns | Class Outfit > > > > > > > > <jeremybu...@classoutfit.com> wrote: > > Sorry - I've used unclear terminology. When I say 'model' I don't mean a > > Cake (MVC) model; I mean an application. I want to understand the best way > > to apply caching to an application that has very fluid and inter-related > > data. It seems to me that applying caching to one model or view impacts > > many others where there is related data. It's quite a task to make sure > > that the cache is refreshed appropriately (not too much and not too little) > > when some data changes in one table/model. > > > Jeremy Burns > > Class Outfit > > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > > On 11 Apr 2011, at 21:43, Miles J wrote: > > > > Do you have an example of how this model would work? > > > > It seems that this point you shouldn't be using models/relations and > > > should use some sort of API. > > > > On Apr 11, 10:59 am, Jeremy Burns | Class Outfit > > > <jeremybu...@classoutfit.com> wrote: > > >> Correct. This is a question about CakePHP specific caching mechanisms > > >> and how best to deploy them in a model where the data is quite fluid. > > > >> Jeremy Burns > > >> Class Outfit > > > >> jeremybu...@classoutfit.comhttp://www.classoutfit.com > > > >> On 11 Apr 2011, at 18:06, Miles J wrote: > > > >>> I am guessing you are talking about model caches and not data caches, > > >>> correct? > > > >>> On Apr 11, 7:55 am, Jeremy Burns <jeremybu...@classoutfit.com> wrote: > > >>>> Any takers on this? > > > >>>> On Mar 28, 11:01 am, Jeremy Burns <jeremybu...@classoutfit.com> wrote: > > > >>>>> I'm working on a site that is very data intensive, has hardly any > > >>>>> images and is light on static content. Its key functionality is close > > >>>>> to a that of a search engine where customers can run searches against > > >>>>> a business database. I'm struggling to get my head round a > > >>>>> sensiblecachingpolicy- a change in one model can impact many others > > >>>>> as there > > >>>>> are a lot of model relationships. Does anyone have any good resources > > >>>>> I can check for deciding the rightcachingstrategy - if indeed one is > > >>>>> needed? > > > >>> -- > > >>> Our newest site for the community: CakePHP Video > > >>> Tutorialshttp://tv.cakephp.org > > >>> Check out the new CakePHP Questions > > >>> sitehttp://ask.cakephp.organdhelpothers with their CakePHP related > > >>> questions. > > > >>> To unsubscribe from this group, send email to > > >>> cake-php+unsubscr...@googlegroups.com For more options, visit this > > >>> group athttp://groups.google.com/group/cake-php > > > > -- > > > Our newest site for the community: CakePHP Video > > > Tutorialshttp://tv.cakephp.org > > > Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp > > > others with their CakePHP related questions. > > > > To unsubscribe from this group, send email to > > > cake-php+unsubscr...@googlegroups.com For more options, visit this group > > > athttp://groups.google.com/group/cake-php -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php