[pLog-svn] r3407 - plog/trunk/class/dao

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat May 13 16:55:14 GMT 2006


Author: oscar
Date: 2006-05-13 16:55:13 +0000 (Sat, 13 May 2006)
New Revision: 3407

Modified:
   plog/trunk/class/dao/articles.class.php
Log:
saving to the 'id' cache should save us a query down the road


Modified: plog/trunk/class/dao/articles.class.php
===================================================================
--- plog/trunk/class/dao/articles.class.php	2006-05-13 16:16:31 UTC (rev 3406)
+++ plog/trunk/class/dao/articles.class.php	2006-05-13 16:55:13 UTC (rev 3407)
@@ -89,7 +89,8 @@
 			// load all the articles with the same title
 			$articles = $this->getMany( "slug",
 			                            $articleTitle,
-										CACHE_ARTICLES_BYNAME );
+										CACHE_ARTICLES_BYNAME,
+                                                    Array( CACHE_ARTICLES => "getId" ));
 								
 			$found = false;
 			if($articles){



More information about the pLog-svn mailing list