You have to clear the cache after changing the published field of a Resource.
-
- 90 Posts
Ok, I see. Thank you. Is this something possible to do with code? I mean the clearing of cache.
Quote from: dragona at May 16, 2011, 10:29 PM
Quote from: OpenGeek at May 16, 2011, 06:18 PM
Quote from: dragona at May 14, 2011, 10:45 PM
Ok, I see. Thank you. Is this something possible to do with code? I mean the clearing of cache.
Yes, in MODX Revolution 2.1+: <?php
$modx->cacheManager->refresh();
In releases of MODX Revolution prior to 2.1, it was: <?php
$modx->cacheManager->clearCache();
Thanks Jason.
just curious, is there a valid API for both versions that will returns their versions at the run time?
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
- 1,336 Posts
I’ve asked this also,
http://modxcms.com/forums/index.php/topic,63705.msg360540.html#msg360540, extras that need to do this will also be affected.
Use MODx, or the cat gets it!
-
- 1,336 Posts
Yep, I’ve just used clearCache for now as it is supported in 2.1 although marked as deprecated.
Use MODx, or the cat gets it!