summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-22 00:30:54 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-22 00:30:54 -0800
commit6ce01328422cc587dedf555d0ba3eb8a0ee05a9f (patch)
tree01f7d738e89b732b99c3cc735f0f822c84a2aeb6 /modules/gallery/controllers
parent95374070db74362bc1481e3fdcdab0d89678c1bc (diff)
Fix for ticket #1027: Add index on cache key column.
(and fix the packager to truncate the cache table before packaging)
Diffstat (limited to 'modules/gallery/controllers')
-rw-r--r--modules/gallery/controllers/packager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/gallery/controllers/packager.php b/modules/gallery/controllers/packager.php
index 66626483..aef032a0 100644
--- a/modules/gallery/controllers/packager.php
+++ b/modules/gallery/controllers/packager.php
@@ -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()