summaryrefslogtreecommitdiff
path: root/modules/gallery/controllers/packager.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-09-29 20:47:43 -0700
committerBharat Mediratta <bharat@menalto.com>2010-09-29 20:47:43 -0700
commitf84782d6200efb424731c93bd029c7cbeb9f3dad (patch)
tree1fea5d8c18a02a2a7e1cab901676bc4631b06df5 /modules/gallery/controllers/packager.php
parentef8751468b998baddbc6d5827a392ed6e12e5548 (diff)
Stop caching all module variables in the vars table using the
name=_cache row. If that overflows, it will cause us to be unable to load variables, and we can't recover from that. Instead, use the Cache table. Bump the gallery module to v40. Fixes ticket #1405.
Diffstat (limited to 'modules/gallery/controllers/packager.php')
-rw-r--r--modules/gallery/controllers/packager.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/gallery/controllers/packager.php b/modules/gallery/controllers/packager.php
index f463d0de..bd51b93c 100644
--- a/modules/gallery/controllers/packager.php
+++ b/modules/gallery/controllers/packager.php
@@ -81,11 +81,6 @@ class Packager_Controller extends Controller {
Database::instance()->query("TRUNCATE {caches}");
Database::instance()->query("TRUNCATE {sessions}");
Database::instance()->query("TRUNCATE {logs}");
- db::build()
- ->delete("vars")
- ->where("module_name", "=", "gallery")
- ->where("name", "=", "_cache")
- ->execute();
db::build()->update("users")
->set(array("password" => ""))
->where("id", "in", array(1, 2))