function State::updateCache

Overrides CacheCollector::updateCache

1 call to State::updateCache()
State::set in core/lib/Drupal/Core/State/State.php
Implements \Drupal\Core\Cache\CacheCollectorInterface::set().

File

core/lib/Drupal/Core/State/State.php, line 165

Class

State
Provides the state system using a key value store.

Namespace

Drupal\Core\State

Code

protected function updateCache($lock = TRUE) {
    // For backward compatibility, allow to opt-out of state caching, if cache
    // is not explicitly enabled, there is no need to update it.
    if (Settings::get('state_cache') !== TRUE) {
        return;
    }
    parent::updateCache($lock);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.