1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-06-22 19:15:33 +02:00

Minor change. You may have to empty your cache.

git-svn-id: file:///svn/phpbb/trunk@4468 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Ludovic Arnaud
2003-09-04 21:51:22 +00:00
parent fec9073f3a
commit 9f4d9ae268

View File

@ -198,11 +198,10 @@ class acm
return FALSE;
}
$query_id = 'Cache id #' . count($this->sql_rowset);
include($this->cache_dir . 'sql_' . md5($query) . '.' . $phpEx);
$query_id = 'Cache id #' . count($this->sql_rowset);
$this->sql_rowset[$query_id] =& $rowset;
// $this->sql_rowset[$query_id] =& $rowset;
return $query_id;
}
@ -234,7 +233,7 @@ class acm
$lines[] = substr($line, 0, -1) . ')';
}
fwrite($fp, "<?php\n\n/*\n$query\n*/\n\n\$rowset = array(" . implode(',', $lines) . ') ?>');
fwrite($fp, "<?php\n\n/*\n$query\n*/\n\n\$this->sql_rowset[\$query_id] = array(" . implode(',', $lines) . ') ?>');
@flock($fp, LOCK_UN);
fclose($fp);