You are here

function gardens_site_data_refresh_all in Acquia Cloud Site Factory Connector 8.2

Same name and namespace in other branches
  1. 8 acsf_init/lib/sites/g/sites.inc \gardens_site_data_refresh_all()

Fully refreshes the APC cached site/domain data, rewriting every key.

1 call to gardens_site_data_refresh_all()
apc_rebuild.php in acsf_init/lib/sites/g/apc_rebuild.php

File

acsf_init/lib/sites/g/sites.inc, line 283
ACSF helper functions for Drupal's multi-site directory aliasing feature.

Code

function gardens_site_data_refresh_all() {
  if ($map = gardens_site_data_load_file()) {
    foreach ($map['sites'] as $domain => $site) {
      $data = gardens_site_data_build_data($site, $map);
      gardens_site_data_cache_set($domain, $data);
    }
  }
}