[pLog-svn] r728 - plog/trunk/class/summary/dao
oscar at devel.plogworld.net
oscar at devel.plogworld.net
Tue Jan 11 16:26:38 GMT 2005
Author: oscar
Date: 2005-01-11 16:26:37 +0000 (Tue, 11 Jan 2005)
New Revision: 728
Modified:
plog/trunk/class/summary/dao/summarystats.class.php
Log:
support for adodb cache removed, it was useless
Modified: plog/trunk/class/summary/dao/summarystats.class.php
===================================================================
--- plog/trunk/class/summary/dao/summarystats.class.php 2005-01-11 02:01:44 UTC (rev 727)
+++ plog/trunk/class/summary/dao/summarystats.class.php 2005-01-11 16:26:37 UTC (rev 728)
@@ -18,17 +18,10 @@
class SummaryStats extends Model
{
- // whether we're using cache or not
- var $_useCache;
-
function SummaryStats()
{
// initialize ADOdb
$this->Model();
-
- // whether we're really using cache or not
- $config =& Config::getConfig();
- $this->_useCache = $config->getValue( "summary_use_cache" );
}
/**
@@ -148,10 +141,7 @@
{
$query = "SELECT date FROM ".$this->getPrefix()."articles WHERE blog_id = ".$blogId. " ORDER BY date ASC LIMIT 0,1" ;
- if( $this->_useCache )
- $result = $this->_db->CacheExecute( $query, SUMMARY_MAX_CACHE_SECS );
- else
- $result = $this->_db->Execute( $query );
+ $result = $this->_db->Execute( $query );
if (!$result)
return false;
@@ -196,10 +186,7 @@
{
$query = "SELECT SUM(num_reads) as total FROM ".$this->getPrefix()."articles WHERE blog_id = ".$blogId;
- if( $this->_useCache )
- $result = $this->_db->CacheExecute( SUMMARY_MAX_CACHE_SECS, $query );
- else
- $result = $this->_db->Execute( $query );
+ $result = $this->_db->Execute( $query );
if (!$result)
return false;
@@ -286,10 +273,7 @@
if( $maxBlogs > 0 )
$query .= " LIMIT 0,".$maxBlogs;
- if( $this->_useCache )
- $result = $this->_db->CacheExecute( SUMMARY_MAX_CACHE_SECS, $query );
- else
- $result = $this->_db->Execute( $query );
+ $result = $this->_db->Execute( $query );
if( !$result ){
$this->log->debug("no most active blogs found!");
More information about the pLog-svn
mailing list