function gardens_site_data_cache_get in Acquia Cloud Site Factory Connector 8.2
Same name and namespace in other branches
- 8 acsf_init/lib/sites/g/sites.inc \gardens_site_data_cache_get()
Retrieves cached site info from APC for a given domain.
Parameters
string $domain: The domain associated with the cached data.
Return value
mixed An object containing information about the site on success, or FALSE if no cached data was found for the domain.
1 call to gardens_site_data_cache_get()
- gardens_site_data_get_site_from_server_info in acsf_init/
lib/ sites/ g/ sites.inc - Checks for a registered ACSF site based on Apache server variables.
File
- acsf_init/
lib/ sites/ g/ sites.inc, line 597 - ACSF helper functions for Drupal's multi-site directory aliasing feature.
Code
function gardens_site_data_cache_get($domain) {
$result = FALSE;
if (extension_loaded('apcu') && ini_get('apc.enabled') && function_exists('apcu_fetch')) {
$domain_key = "gardens_domain:{$domain}";
$result = apcu_fetch($domain_key);
}
return $result;
}