function CacheManager::renewCachePrefix in X Autoload 7.4
Same name and namespace in other branches
- 7.5 src/CacheManager/CacheManager.php \Drupal\xautoload\CacheManager\CacheManager::renewCachePrefix()
Renew the cache prefix, save it, and notify all observers.
File
- lib/
CacheManager/ CacheManager.php, line 51
Class
Namespace
Drupal\xautoload\CacheManagerCode
function renewCachePrefix() {
$this->prefix = Util::randomString();
variable_set('xautoload_cache_prefix', $this->prefix);
foreach ($this->observers as $observer) {
$observer
->setCachePrefix($this->prefix);
}
}