[pLog-svn] r3357 - plog/trunk/class/dao
mark at devel.lifetype.net
mark at devel.lifetype.net
Mon May 8 02:37:02 GMT 2006
Author: mark
Date: 2006-05-08 02:36:25 +0000 (Mon, 08 May 2006)
New Revision: 3357
Modified:
plog/trunk/class/dao/commentscommon.class.php
Log:
Some cache removing code added.
Modified: plog/trunk/class/dao/commentscommon.class.php
===================================================================
--- plog/trunk/class/dao/commentscommon.class.php 2006-05-07 13:42:03 UTC (rev 3356)
+++ plog/trunk/class/dao/commentscommon.class.php 2006-05-08 02:36:25 UTC (rev 3357)
@@ -267,6 +267,7 @@
Db::qstr( $comment->getArticleId())."'";
$result = $this->Execute( $query );
$this->_cache->removeData( $comment->getArticleId(), CACHE_ARTICLE_COMMENTS_BYARTICLE );
+ $this->_cache->removeData( $comment->getId(), CACHE_ARTICLE_COMMENTS );
// update the blog and the article counters
include_once( PLOG_CLASS_PATH."class/dao/blogs.class.php" );
@@ -317,6 +318,7 @@
if(($result = $this->update( $comment ))) {
// reset the cache
$this->_cache->removeData( $comment->getArticleId(), CACHE_ARTICLE_COMMENTS_BYARTICLE );
+ $this->_cache->removeData( $comment->getId(), CACHE_ARTICLE_COMMENTS );
// update counters in the articles table according to the status
include_once( PLOG_CLASS_PATH."class/dao/articles.class.php" );
$articles = new Articles();
More information about the pLog-svn
mailing list