loadCacheFile('foo')) && ($GLOBALS['cache_instance']->extensionVersionMatches('foo'))) { // Load cache $GLOBALS['cache_array']['foo'] = $GLOBALS['cache_instance']->getArrayFromCache(); } elseif (getOutputMode() != '1') { // Create cache file $GLOBALS['cache_instance']->init(); // Load every data from DB to cache file $add = runFilterChain('sql_admin_extra_data'); // Query the database about this $result = SQL_QUERY('SELECT * FROM `{?_MYSQL_PREFIX?}_table` ORDER BY `some_column` ASC', __FILE__, __LINE__); while ($dummy = SQL_FETCHARRAY($result)) { // Save row $GLOBALS['cache_instance']->addRow($dummy); } // END - while // Free memory SQL_FREERESULT($result); // Close cache $GLOBALS['cache_instance']->storeExtensionVersion('foo'); $GLOBALS['cache_instance']->finalize(); } // [EOF] ?>