You are here

protected function SchemaCache::resolveCacheMiss in Drupal 7

Overrides DrupalCacheArray::resolveCacheMiss().

Overrides DrupalCacheArray::resolveCacheMiss

File

includes/bootstrap.inc, line 3314
Functions that need to be loaded on every Drupal request.

Class

SchemaCache
Extends DrupalCacheArray to allow for dynamic building of the schema cache.

Code

protected function resolveCacheMiss($offset) {
  $complete_schema = drupal_get_complete_schema();
  $value = isset($complete_schema[$offset]) ? $complete_schema[$offset] : NULL;
  $this->storage[$offset] = $value;
  $this
    ->persist($offset);
  return $value;
}