Nested views and caching |
[eluser]sidscorner[/eluser]
Hi there, I have a question about nested views and caching. Initially I had a function in my controller that generates a dynamic page and I was passing data into it. I then separated the function into two, because I wanted to cache a chunk of the data. The code is something like this: Code: function foo() { My expectation was that the main page would still be dynamic while it pulled the 'chunk' from the cache. However, the above code caches the entire 'main_page' view. What am I doing wrong? Would appreciate some help. Thanks in advance! Cheers
[eluser]sidscorner[/eluser]
Hi, thanks for the tip. The template library looks great but seems too complex for my current needs. Just wondering if anyone knows a quick workaround. cheers.
[eluser]sidscorner[/eluser]
Never mind, found a suitable solution: http://ellislab.com/forums/viewthread/102659/ |
Welcome Guest, Not a member yet? Register Sign In |