I have a (Revo) project underway where the site relies heavily on custom data tables, with a small number of MODx resources simply providing views into various data queries.
I have a custom url plugin which allows these views to be represented with friendly urls rather than url params. This requires an uncached snippet on the receiving page to ensure the correct data is retrieved.
Any snippet working with that data on the ’view’ page (eg. to iterate over related objects) performs perfectly well uncached.
But I want really snappy performance! When I try to call it cached, everything just disappears.
It occurred to me that I need to build in some kind of custom caching functionality to allow me to cache the data.
I’ve been reading up on the docs but am a little unsure as to how to proceed with this. Can anyone tip me in the right direction?