mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-28 18:53:58 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user