[pLog-svn] r491 - plog/trunk/class/template
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Dec 14 13:11:57 GMT 2004
Author: oscar
Date: 2004-12-14 13:11:57 +0000 (Tue, 14 Dec 2004)
New Revision: 491
Modified:
plog/trunk/class/template/cachecontrol.class.php
Log:
added one extra parameter to CacheControl::resetBlogCache to determine whether the summary cache should also be emptied or not...
Modified: plog/trunk/class/template/cachecontrol.class.php
===================================================================
--- plog/trunk/class/template/cachecontrol.class.php 2004-12-14 08:23:45 UTC (rev 490)
+++ plog/trunk/class/template/cachecontrol.class.php 2004-12-14 13:11:57 UTC (rev 491)
@@ -30,7 +30,7 @@
// and loop through them
foreach( $siteBlogs as $blog ) {
- CacheControl::resetBlogCache( $blog->getId());
+ CacheControl::resetBlogCache( $blog->getId(), false );
}
// clear the cache used by the summary
@@ -78,8 +78,10 @@
* resets the cache of a blog
*
* @param blogId The id of the blog whose cache we'd like to reset
+ * @param resetSummary whether the summary cache should also be cleaned up,
+ * enabled by default
*/
- function resetBlogCache( $blogId )
+ function resetBlogCache( $blogId, $resetSummary = true )
{
$config =& Config::getConfig();
// nothing to do if caching is not enabled...
@@ -98,7 +100,8 @@
// we need to clear the contents of the summary caches because we have added or removed
// posts or done something that might affect the summary!
- CacheControl::clearSummaryCache();
+ if( $resetSummary )
+ CacheControl::clearSummaryCache();
return true;
}
More information about the pLog-svn
mailing list