From 774e0b3737d51b70bb141f4e13c6c111208847c0 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 20 May 2009 06:10:14 +0000 Subject: Avoid complex inserts in available_tasks() to make admin/maintenance run faster. This fixes ticket #235. Incidentally, refactor exif and search to use the same patterns overall so that if you understand one, you understand the other and they generally use the same strings for localization. --- modules/exif/helpers/exif_installer.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/exif/helpers/exif_installer.php') diff --git a/modules/exif/helpers/exif_installer.php b/modules/exif/helpers/exif_installer.php index 3088cdbb..5f37996a 100644 --- a/modules/exif/helpers/exif_installer.php +++ b/modules/exif/helpers/exif_installer.php @@ -33,12 +33,14 @@ class exif_installer { KEY(`item_id`)) ENGINE=InnoDB DEFAULT CHARSET=utf8;"); module::set_version("exif", 1); + exif::check_index(); } } static function uninstall() { $db = Database::instance(); $db->query("DROP TABLE IF EXISTS {exif_records};"); + site_status::clear("exif_index_out_of_date"); module::delete("exif"); } } -- cgit v1.2.3