diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-09-29 20:47:43 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-09-29 20:47:43 -0700 |
commit | f84782d6200efb424731c93bd029c7cbeb9f3dad (patch) | |
tree | 1fea5d8c18a02a2a7e1cab901676bc4631b06df5 /modules/gallery/controllers/packager.php | |
parent | ef8751468b998baddbc6d5827a392ed6e12e5548 (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.php | 5 |
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)) |