I saw from some other posts that #runevent(event=“blah”,cache=true,cachetimeout=10)# does not cache the event because it is meant to cache the entire event (not just a portion of it), so I started reading up on viewlets.
The CB Guide offers something close to the following for caching viewlets:
This is fine that it caches the view, but it still runs that query before returning the cached view.
What would be a best practice for caching the business logic that is required to build the viewlet? I can build in a “cacheput” etc, but just wondering if there is a convention?
That wont error, it just means it is doing two calls to inflate the info into the RC scoped variable.
If you haven’t already check out ContentBox. It has a lot of tricks under the hood, that if you peer through the code you will learn a lot of tricks etc., but one thing you will notice for certain is how caching works with OCM at the moment.
Luis, good news that 4.0 will have it under the hood