[pLog-svn] r5964 - plog/branches/lifetype-1.2/class/dao
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Wed Oct 3 14:15:27 EDT 2007
Author: jondaley
Date: 2007-10-03 14:15:27 -0400 (Wed, 03 Oct 2007)
New Revision: 5964
Modified:
plog/branches/lifetype-1.2/class/dao/articles.class.php
Log:
This fixes the corrupt cache problem.
I don't think this is the real fix, as I think this code was probably okay,
but I couldn't figure out where $article was being set to an array()
Modified: plog/branches/lifetype-1.2/class/dao/articles.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/articles.class.php 2007-10-02 18:55:05 UTC (rev 5963)
+++ plog/branches/lifetype-1.2/class/dao/articles.class.php 2007-10-03 18:15:27 UTC (rev 5964)
@@ -991,7 +991,8 @@
RecentArticles::resetRecentArticlesCache( $article->getBlogId());
$this->_cache->removeData( $article->getBlogId(), CACHE_ARTICLESPERMONTH );
$this->_cache->removeData( $article->getId(), CACHE_ARTICLETEXT );
- $this->_cache->setData( $article->getId(), CACHE_ARTICLES, $article );
+ $this->_cache->removeData( $article->getId(), CACHE_ARTICLES );
+// $this->_cache->setData( $article->getId(), CACHE_ARTICLES, $article );
$this->_cache->removeData( $article->getPostSlug(), CACHE_ARTICLES_BYNAME );
return true;
More information about the pLog-svn
mailing list