clearCache - specific view?


#1

I’m developing an app that will have database driven views which could cause several large views to be cached in the DOM. I’d like to have the ability to remove specific views from the cache dynamically but not disable caching altogether on these views.

For example: I’d create a service that would keep track of the last five loaded views and then kill the oldest one view when the 6th view is loaded. In essence only caching up to five of these types of view.

Is there a way to do this currently?