Fix for ticket #1027: Add index on cache key column.

(and fix the packager to truncate the cache table before packaging)
This commit is contained in:
Andy Staudacher
2010-02-22 00:30:54 -08:00
parent 95374070db
commit 6ce0132842
4 changed files with 15 additions and 3 deletions
+1
View File
@@ -82,6 +82,7 @@ class Packager_Controller extends Controller {
module::set_var("gallery", "blocks_{$key}", serialize($blocks));
}
Database::instance()->query("TRUNCATE {caches}");
Database::instance()->query("TRUNCATE {sessions}");
Database::instance()->query("TRUNCATE {logs}");
db::build()