[pLog-svn] r2775 - plog/trunk/class/action/admin

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Jan 12 20:54:27 GMT 2006


Author: oscar
Date: 2006-01-12 20:54:26 +0000 (Thu, 12 Jan 2006)
New Revision: 2775

Modified:
   plog/trunk/class/action/admin/adminaddarticlecategoryajaxaction.class.php
Log:
this should help clear the template cache when the category is added via ajax


Modified: plog/trunk/class/action/admin/adminaddarticlecategoryajaxaction.class.php
===================================================================
--- plog/trunk/class/action/admin/adminaddarticlecategoryajaxaction.class.php	2006-01-12 13:37:33 UTC (rev 2774)
+++ plog/trunk/class/action/admin/adminaddarticlecategoryajaxaction.class.php	2006-01-12 20:54:26 UTC (rev 2775)
@@ -85,6 +85,9 @@
 				
 				// fire the post event
 				$this->notifyEvent( EVENT_POST_CATEGORY_ADD, Array( "category" => &$category ));
+				
+				// clear the cache if everything went fine
+				CacheControl::resetBlogCache( $this->_blogInfo->getId(), false );							
 			}             
             else
             {



More information about the pLog-svn mailing list