I need to do some fragment caching in my Rails app. In some pages, I have several different fragments that need to be cached (since each one expires under different circumstances). Unfortunately, the Beta book on this subject is unfinished. Has anyone implemented fragment caching with multiple fragments on one page? If so, how did you accomplish this? Also, should I expect any problems specifying the cache boundaries from within a layout? Thanks. Matt
Belorion wrote:>I need to do some fragment caching in my Rails app. In some pages, I >have several different fragments that need to be cached (since each >one expires under different circumstances). > >Unfortunately, the Beta book on this subject is unfinished. Has >anyone implemented fragment caching with multiple fragments on one >page? If so, how did you accomplish this? >I did. Works perfectly. Use a different cache key for each of the fragments. That''s all.> Also, should I expect any >problems specifying the cache boundaries from within a layout? >Thanks. > > >I don''t know what you mean by this. Can you provide an example? -- stefan