-
☆ A M B ☆
- 24,524 Posts
Depending on how you want to do it, a module for manual removal and a plugin for automatic removal.
Hi,
I load modx externaly and each time data is submitted which is at a 10 minute basis I clear the cache in order to load the most recent data. The data is loaded from a snippet I have created. I dont understand your reply, can you make it clearer?
Thanks
For the record, you can clear a specific page cache using:
$modx->cacheManager->clearCache(array($resource->getCacheKey() . ’.cache.php’));
and sometime you’d want to clear the context cache (which contains the context’s structure):
$modx->cacheManager->clearCache(array("{$resource->context_key}/context.cache.php"));