Ignore:
Timestamp:
04/15/10 13:28:42 (9 years ago)
Author:
sander
Message:

Kill the SQL query cache. It does not work with the background daemon

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/cake/libs/model/datasources/dbo_source.php

    r5 r358  
    329329 */ 
    330330        function fetchAll($sql, $cache = true, $modelName = null) { 
     331                // Forcefully kill the SQL query cache 
     332                // NOTE: This is a hack 
     333                // -- 
     334                // Sander Marechal 
     335                $cache = false; 
     336 
    331337                if ($cache && isset($this->_queryCache[$sql])) { 
    332338                        if (preg_match('/^\s*select/i', $sql)) { 
Note: See TracChangeset for help on using the changeset viewer.