You are here

function _d8cache_cache_tags_update_cache in Drupal 8 Cache Backport 7

Update the cache with data returned from the database.

Parameters

array $result: The array of (tag, invalidations) to sync to the database.

1 call to _d8cache_cache_tags_update_cache()
_d8cache_cache_tags_calculate_checksum in ./d8cache.module
Calculates the current checksum for a given set of tags.

File

./d8cache.module, line 376
Main module file for the D8 caching system backport.

Code

function _d8cache_cache_tags_update_cache($result) {
  if (!variable_get('d8cache_use_cache_tags_cache', FALSE)) {
    return;
  }
  foreach ($result as $tag => $invalidations) {
    cache_set($tag, $invalidations, 'cache_d8cache_cache_tags');
  }
}