}
// Version number
-EXT_SET_VERSION('0.2.2');
+EXT_SET_VERSION('0.2.3');
// Version history array (add more with , '0.1.0' and so on)
-EXT_SET_VER_HISTORY(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2'));
+EXT_SET_VER_HISTORY(array('0.0', '0.0.1', '0.0.2', '0.0.3', '0.0.4', '0.0.5', '0.0.6', '0.0.7', '0.0.8', '0.0.9', '0.1.0', '0.1.1', '0.1.2', '0.1.3', '0.1.4', '0.1.5', '0.1.6', '0.1.7', '0.1.8', '0.1.9', '0.2.0', '0.2.1', '0.2.2', '0.2.3'));
// Which load mode?
switch ($EXT_LOAD_MODE) {
unregisterFilter('post_admin_deleted', 'CACHE_DESTROY_ON_ADMIN_CHANGE', true, $dry_run);
unregisterFilter('post_admin_reset_pass', 'CACHE_DESTROY_ON_ADMIN_CHANGE', true, $dry_run);
unregisterFilter('extension_remove', 'CACHE_DESTROY_ALL', true, $dry_run);
+ unregisterFilter('shutdown', 'CACHE_DESTROY_FILTER', true, $dry_run);
break;
case 'activate': // Do stuff when admin activates this extension
// Update notes (these will be set as task text!)
EXT_SET_UPDATE_NOTES("Weitere Filter hinzugefügt.");
break;
+
+ case '0.2.3': // SQL queries for v0.2.3
+ ADD_EXT_SQL("ALTER TABLE `{!_MYSQL_PREFIX!}_config` ADD cache_filter ENUM('Y','N') NOT NULL DEFAULT 'Y'");
+
+ // Update notes (these will be set as task text!)
+ EXT_SET_UPDATE_NOTES("Cachen von Filtern hinzugefügt.");
+
+ // Register a new filter
+ registerFilter('shutdown', 'CACHE_DESTROY_FILTER', false, true, $dry_run);
+ break;
}
break;