1 module.inc module_implements_write_cache()

Writes the hook implementation cache.

See also

module_implements()

Related topics

File

core/includes/module.inc, line 905
API for loading and interacting with Backdrop modules.

Code

function module_implements_write_cache() {
  // The list of implementations includes vital modules only before full
  // bootstrap, so do not write cache if we are not fully bootstrapped yet.
  if (backdrop_get_bootstrap_phase() != BACKDROP_BOOTSTRAP_FULL) {
    return;
  }
  $implementations = &backdrop_static('module_implements');
  if (isset($implementations['#write_cache'])) {
    unset($implementations['#write_cache']);
    cache('bootstrap')->set('module_implements', $implementations);
  }
}