X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fextensions%2Fext-cache.php;h=b77955a9f6dd2b9497af0eb0256d1c96751d9ab2;hb=b38ad6ba590c952cfe839d11d467c41a8bfe4748;hp=29221d4fdf753316456546162ed03c7243b168e5;hpb=4b10617e87d23f8813857c05b6696f6398a23b90;p=mailer.git diff --git a/inc/extensions/ext-cache.php b/inc/extensions/ext-cache.php index 29221d4fdf..b77955a9f6 100644 --- a/inc/extensions/ext-cache.php +++ b/inc/extensions/ext-cache.php @@ -44,15 +44,15 @@ if (!defined('__SECURITY')) { // Version number setThisExtensionVersion('0.2.5'); -// Version history array (add more with , '0.1.0' and so on) -setExtensionVersionHistory(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', '0.2.4', '0.2.5')); +// Version history array (add more with , '0.0.1' and so on) +setExtensionVersionHistory(array('0.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', '0.2.4', '0.2.5')); // Keep this extension always active! setExtensionAlwaysActive('Y'); // Which load mode? switch (getExtensionMode()) { - case 'register': // Do stuff when installation is running (modules.php?module=admin is called) + case 'register': // Do stuff when installation is running break; case 'remove': // Do stuff when removing extension @@ -100,14 +100,8 @@ switch (getExtensionMode()) { break; case '0.0.4': // SQL queries for v0.0.4 - // Is the cache extension itself there? - if (isExtensionActive('cache')) { - // Check for cache when extension is already installed - if ($GLOBALS['cache_instance']->loadCacheFile('extension')) $GLOBALS['cache_instance']->removeCacheFile(); - } // END - if - // Update notes (these will be set as task text!) - setExtensionUpdateNotes("Spalte "keep_active" ist hinzugefügt. Cache wurde reinitialisiert."); + setExtensionUpdateNotes("Spalte "keep_active" ist hinzugefügt."); break; case '0.0.5': // SQL queries for v0.0.5 @@ -121,8 +115,8 @@ switch (getExtensionMode()) { break; case '0.0.7': // SQL queries for v0.0.7 - addConfigAddSql('db_hits', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); - addConfigAddSql('cache_hits', "BIGINT(20) UNSIGNED NOT NULL DEFAULT 0"); + addConfigAddSql('db_hits', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0'); + addConfigAddSql('cache_hits', 'BIGINT(20) UNSIGNED NOT NULL DEFAULT 0'); addAdminMenuSql('stats','cache_stats','DB-Cache','Auf Cache und gesamte Datenbank registrierte Anfragen anzeigen.', 4); // Update notes (these will be set as task text!) @@ -190,7 +184,7 @@ switch (getExtensionMode()) { break; case '0.2.0': // SQL queries for v0.2.0 - // This update depends on sql_patches + // This update depends on ext-sql_patches addExtensionDependency('sql_patches'); // Update notes (these will be set as task text!) @@ -249,7 +243,7 @@ switch (getExtensionMode()) { // Update notes (these will be set as task text!) setExtensionUpdateNotes("Daten von gefundenen Sprachdateien werden zu den Erweiterungen gecacht."); break; - } + } // END - switch break; case 'modify': // When the extension got modified @@ -264,7 +258,7 @@ switch (getExtensionMode()) { default: // Unknown extension mode logDebugMessage(__FILE__, __LINE__, sprintf("Unknown extension mode %s in extension %s detected.", getExtensionMode(), getCurrentExtensionName())); break; -} +} // END - switch // [EOF] ?>