- if (!empty($sql))
- {
- // Run SQLs without compiling them...
- $result = SQL_QUERY($sql, __FILE__, __LINE__, false);
- }
- }
- }
+ $result = SQL_QUERY($sql, __FILE__, __LINE__, false);
+ } // END - if
+ } // END - foreach
+
+ // Remove cache file(s) if extension is active
+ if ((EXT_IS_ACTIVE("cache")) || (GET_EXT_VERSION("cache") != "")) {
+ //* DEBUG: */ echo __LINE__.": DESTROY!<br />\n";
+ // Remove cache files
+ if ($cacheInstance->cache_file("extensions", true)) $cacheInstance->cache_destroy();
+ if ($cacheInstance->cache_file("mod_reg", true)) $cacheInstance->cache_destroy();
+ if ($cacheInstance->cache_file("config", true)) $cacheInstance->cache_destroy();
+ } // END - if