/** * Internal -- Determine if there is an external cache available for use. * Currently only Zend Platform is supported. */ function check_cache() { if (EXTERNAL_CACHE_DEBUG) { SugarCache::log("Checking cache"); } if ($GLOBALS['external_cache_checked'] == false) { $GLOBALS['external_cache_checked'] = true; $GLOBALS['external_cache_object'] = SugarCache::discover(); } if (EXTERNAL_CACHE_DEBUG) { SugarCache::log("Checking cache: " . var_export($GLOBALS['external_cache_enabled'], true)); } }