[pLog-svn] r1055 - in plugins/trunk: articlereferers/class/action contentfilter/class/action dropcase/class/action flickr/class/action gravatar/class/action hostblock/class/action nofollow/class/action recentcomments/class/action recenttrackbacks/class/action smileys smileys/class/action topcommentposts/class/action topcommentvisitors/class/action topreadposts/class/action toptrackbackposts/class/action

mark at devel.plogworld.net mark at devel.plogworld.net
Sun Feb 13 13:24:41 GMT 2005


Author: mark
Date: 2005-02-13 13:24:41 +0000 (Sun, 13 Feb 2005)
New Revision: 1055

Modified:
   plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
   plugins/trunk/contentfilter/class/action/adminupdateblogcontentfilterconfigaction.class.php
   plugins/trunk/contentfilter/class/action/adminupdateblogfilteredcontentaction.class.php
   plugins/trunk/contentfilter/class/action/adminupdatecontentfilterconfigaction.class.php
   plugins/trunk/contentfilter/class/action/adminupdatefilteredcontentaction.class.php
   plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
   plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php
   plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php
   plugins/trunk/hostblock/class/action/adminaddblockedhostaction.class.php
   plugins/trunk/hostblock/class/action/adminaddblogblockedhostaction.class.php
   plugins/trunk/hostblock/class/action/adminupdateblockedhostaction.class.php
   plugins/trunk/hostblock/class/action/adminupdateblogblockedhostaction.class.php
   plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php
   plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php
   plugins/trunk/nofollow/class/action/pluginnofollowupdateconfigaction.class.php
   plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php
   plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php
   plugins/trunk/smileys/class/action/pluginsmileysupdateconfigaction.class.php
   plugins/trunk/smileys/pluginsmileys.class.php
   plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php
   plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php
   plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php
   plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php
Log:
Add the following line to all my ported plugins. To make sure the template cache will clear after add/delete/update action.

CacheControl::resetBlogCache( $this->_blogInfo->getId());

Modified: plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php
===================================================================
--- plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/articlereferers/class/action/pluginarticlereferersupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -61,6 +61,9 @@
 			$this->_view = new PluginArticleReferersConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("articlereferers_settings_saved_ok"));
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/contentfilter/class/action/adminupdateblogcontentfilterconfigaction.class.php
===================================================================
--- plugins/trunk/contentfilter/class/action/adminupdateblogcontentfilterconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/contentfilter/class/action/adminupdateblogcontentfilterconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -48,6 +48,9 @@
 			$this->_view = new AdminBlogFilteredContentView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("blocked_content_updated_ok"));			
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/contentfilter/class/action/adminupdateblogfilteredcontentaction.class.php
===================================================================
--- plugins/trunk/contentfilter/class/action/adminupdateblogfilteredcontentaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/contentfilter/class/action/adminupdateblogfilteredcontentaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -72,6 +72,9 @@
           	$this->_view = new AdminBlogFilteredContentView( $this->_blogInfo );
             $this->_view->setSuccessMessage( $this->_locale->tr("blocked_content_updated_ok") );
             $this->setCommonData();
+            
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());            
 
             return true;
         }

Modified: plugins/trunk/contentfilter/class/action/adminupdatecontentfilterconfigaction.class.php
===================================================================
--- plugins/trunk/contentfilter/class/action/adminupdatecontentfilterconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/contentfilter/class/action/adminupdatecontentfilterconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -48,6 +48,9 @@
 			$this->_view = new AdminFilteredContentView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("content_block_settings_updated_ok"));			
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/contentfilter/class/action/adminupdatefilteredcontentaction.class.php
===================================================================
--- plugins/trunk/contentfilter/class/action/adminupdatefilteredcontentaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/contentfilter/class/action/adminupdatefilteredcontentaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -73,6 +73,9 @@
             $this->_view->setSuccessMessage( $this->_locale->tr("blocked_content_updated_ok") );
             $this->setCommonData();
 
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());            
+
             return true;
         }
     }

Modified: plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php
===================================================================
--- plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/dropcase/class/action/plugindropcaseupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -49,6 +49,9 @@
 			$this->_view = new PluginDropCaseConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("dropcase_settings_saved_ok"));			
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php
===================================================================
--- plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/flickr/class/action/pluginflickrupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -104,7 +104,10 @@
 
 			$this->_view = new PluginFlickrConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("flickr_settings_saved_ok"));
-			$this->setCommonData();			
+			$this->setCommonData();
+
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());				
             
             return true;		
 		}

Modified: plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php
===================================================================
--- plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/gravatar/class/action/plugingravatarupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,6 +58,9 @@
 			$this->_view = new PluginGravatarConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("gravatar_settings_saved_ok"));
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/hostblock/class/action/adminaddblockedhostaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminaddblockedhostaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/hostblock/class/action/adminaddblockedhostaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -71,7 +71,10 @@
 			$this->notifyEvent( EVENT_POST_BLOCK_HOST_ADD, Array( "host" => &$blockedHost ));
           	$this->_view = new AdminBlockedHostsView( $this->_blogInfo );
             $this->_view->setSuccessMessage( $this->_locale->tr("blocked_host_updated_ok") );
-            $this->setCommonData();            
+            $this->setCommonData();
+            
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());                     
 
             return true;
         }

Modified: plugins/trunk/hostblock/class/action/adminaddblogblockedhostaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminaddblogblockedhostaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/hostblock/class/action/adminaddblogblockedhostaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -71,8 +71,11 @@
 			$this->notifyEvent( EVENT_POST_BLOCK_HOST_ADD, Array( "host" => &$blockedHost ));
           	$this->_view = new AdminBlogBlockedHostsView( $this->_blogInfo );
             $this->_view->setSuccessMessage( $this->_locale->tr("blocked_host_updated_ok") );
-            $this->setCommonData();            
+            $this->setCommonData();
 
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());                        
+
             return true;
         }
     }

Modified: plugins/trunk/hostblock/class/action/adminupdateblockedhostaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminupdateblockedhostaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/hostblock/class/action/adminupdateblockedhostaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -92,7 +92,10 @@
 			$this->notifyEvent( EVENT_POST_BLOCK_HOST_UPDATE, Array( "host" => &$blockedHost ));
           	$this->_view = new AdminBlockedHostsView( $this->_blogInfo );
             $this->_view->setSuccessMessage( $this->_locale->tr("blocked_host_updated_ok") );
-            $this->setCommonData();            
+            $this->setCommonData();
+            
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());                   
 
             return true;
         }

Modified: plugins/trunk/hostblock/class/action/adminupdateblogblockedhostaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminupdateblogblockedhostaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/hostblock/class/action/adminupdateblogblockedhostaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -94,6 +94,9 @@
             $this->_view->setSuccessMessage( $this->_locale->tr("blocked_host_updated_ok") );
             $this->setCommonData();  
             
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());            
+            
             return true;
         }
     }

Modified: plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/hostblock/class/action/adminupdatebloghostblockconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -48,6 +48,9 @@
 			$this->_view = new AdminBlogBlockedHostsView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("host_block_settings_updated_ok"));			
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php
===================================================================
--- plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/hostblock/class/action/adminupdatehostblockconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -48,6 +48,9 @@
 			$this->_view = new AdminBlockedHostsView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("host_block_settings_updated_ok"));			
 			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/nofollow/class/action/pluginnofollowupdateconfigaction.class.php
===================================================================
--- plugins/trunk/nofollow/class/action/pluginnofollowupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/nofollow/class/action/pluginnofollowupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -48,7 +48,10 @@
 			
 			$this->_view = new PluginNoFollowConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("nofollow_settings_saved_ok"));			
-			$this->setCommonData();			
+			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());					
             
             return true;		
 		}

Modified: plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/recentcomments/class/action/pluginrecentcommentsupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,7 +58,10 @@
 
 			$this->_view = new PluginRecentCommentsConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("recentcomments_settings_saved_ok"));
-			$this->setCommonData();			
+			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());				
             
             return true;		
 		}

Modified: plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php
===================================================================
--- plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/recenttrackbacks/class/action/pluginrecenttrackbacksupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,7 +58,10 @@
 			
 			$this->_view = new PluginRecentTrackbacksConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("recenttrackbacks_settings_saved_ok"));
-			$this->setCommonData();					
+			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());							
             
             return true;		
 		}

Modified: plugins/trunk/smileys/class/action/pluginsmileysupdateconfigaction.class.php
===================================================================
--- plugins/trunk/smileys/class/action/pluginsmileysupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/smileys/class/action/pluginsmileysupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -53,6 +53,9 @@
 			$this->_view = new PluginSmileysConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("smileys_settings_saved_ok"));
 			$this->setCommonData();
+
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());			
             
             return true;		
 		}

Modified: plugins/trunk/smileys/pluginsmileys.class.php
===================================================================
--- plugins/trunk/smileys/pluginsmileys.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/smileys/pluginsmileys.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -108,10 +108,11 @@
 			// get the objects we need from the parameters array
 			$blogInfo = $params[ "blogInfo" ];
 			$blogSettings = $blogInfo->getSettings();
+		    $pluginEnabled = $blogSettings->getValue( "plugin_smileys_enabled" );
 			$from = $params["from"];
 			
-			if( $from != "" )
-				return;
+            if ( $pluginEnabled != 1 || $from != "")
+                return true;			
 			
 			$smileySet = $blogSettings->getValue( "plugin_smileys_iconset" );
 			if( $smileySet == "" )

Modified: plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/topcommentposts/class/action/plugintopcommentpostsupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,7 +58,10 @@
 
 			$this->_view = new PluginTopCommentPostsConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("topcommentposts_settings_saved_ok"));
-			$this->setCommonData();				
+			$this->setCommonData();	
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());						
             
             return true;		
 		}

Modified: plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/topcommentvisitors/class/action/plugintopcommentvisitorsupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,7 +58,10 @@
 
 			$this->_view = new PluginTopCommentVisitorsConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("topcommentvisitors_settings_saved_ok"));
-			$this->setCommonData();				
+			$this->setCommonData();
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());					
             
             return true;		
 		}

Modified: plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/topreadposts/class/action/plugintopreadpostsupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,7 +58,10 @@
 			
 			$this->_view = new PluginTopReadPostsConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("topreadposts_settings_saved_ok"));
-			$this->setCommonData();					
+			$this->setCommonData();	
+
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());							
             
             return true;		
 		}

Modified: plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php
===================================================================
--- plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php	2005-02-13 12:57:14 UTC (rev 1054)
+++ plugins/trunk/toptrackbackposts/class/action/plugintoptrackbackpostsupdateconfigaction.class.php	2005-02-13 13:24:41 UTC (rev 1055)
@@ -58,7 +58,10 @@
 
 			$this->_view = new PluginTopTrackbackPostsConfigView( $this->_blogInfo );
 			$this->_view->setSuccessMessage( $this->_locale->tr("toptrackbackposts_settings_saved_ok"));
-			$this->setCommonData();				
+			$this->setCommonData();	
+			
+			// clear the cache
+			CacheControl::resetBlogCache( $this->_blogInfo->getId());						
             
             return true;		
 		}




More information about the pLog-svn mailing list