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

ork at devel.plogworld.net ork at devel.plogworld.net
Sat Jun 11 23:27:09 GMT 2005


Author: ork
Date: 2005-06-11 23:27:09 +0000 (Sat, 11 Jun 2005)
New Revision: 2205

Modified:
   plog/trunk/class/dao/model.class.php
Log:
removed CachedExec, because we don't use it..


Modified: plog/trunk/class/dao/model.class.php
===================================================================
--- plog/trunk/class/dao/model.class.php	2005-06-11 22:18:48 UTC (rev 2204)
+++ plog/trunk/class/dao/model.class.php	2005-06-11 23:27:09 UTC (rev 2205)
@@ -101,7 +101,9 @@
          */        
         function Execute( $query, $page = DEFAULT_PAGING_ENABLED, $itemsPerPage = DEFAULT_ITEMS_PER_PAGE )
         {
-//            $this->log->info("executing $query");
+            if( DEBUG_ENABLED && DEBUG_CHANNELS & DEBUG_CHANNEL_SQL )
+                $this->debug->log("Executing SQL Query: $query", LOGGER_PRIO_INFO);
+
             $this->_initializeDb();
         
             $result = $this->_db->Execute( $query, $page, $itemsPerPage );
@@ -119,30 +121,6 @@
         }
 
         /**
-         * executes and caches a query, using ADOdb's built-in caching features
-         *
-         * @param query the query to execute
-         */
-        function CacheExecute( $query ) 
-        {
-            $queryCache=& Db::getDbCache();
-            
-            // we should only cache 'SELECT' queries
-            if( substr($query, 0, 6) == "SELECT" ) {
-                if( empty($queryCache[$query])) {
-                    $queryCache[$query] = $this->_db->Execute( $query );
-                }
-                    
-                $result = $queryCache[$query];
-            }
-            else {
-                $result = $this->_db->Execute( $query );
-            }
-            
-            return $result;
-        }
-
-        /**
          * Returns the last error message from the database.
          */
         function DbError()




More information about the pLog-svn mailing list