Quote from: OpenGeek at Aug 30, 2010, 02:47 PM
This is the purpose of partial resource caching. You cache the parts of the resource that is the same on every request, and any dynamic portions are called uncached so they can make use of any $_REQUEST variables.
Do you mean to cache the resource and then call the snippets with the "!" before the name? Ok, this can be a solution, but, again, I need to process over and over the same GET request in the non-cached snippets.
Quote from: OpenGeek at Aug 30, 2010, 02:47 PM
You can also add custom caching for individual snippets now using $modx->cacheManager; see getPage for an example of how this snippet can cache data for paged result sets using the modCacheManager API. Another possibility is to create a derivative class of modRequest and override the getResource() method to automatically cache like requests, though if user/session data was also involved, the GET or POST variables might not be unique enough to do this kind of caching and handling it in the snippets themselves would be more practical.
The custom caching seems to be a good solution. However, I wonder how many times MODx developers need this solution and if it is not easier for all of us to use the whole http GET request URL as a key for caching, as browsers and proxies are used to do. I mean: why do we need a different standard, it there is already one (de-facto) standard for caching keys?