public function MemCacheDrupal::reloadVariables in Memcache API and Integration 7
Helper function to reload variables.
This is used by the tests to verify that the cache object used the correct settings.
1 call to MemCacheDrupal::reloadVariables()
- MemCacheDrupal::__construct in ./
memcache.inc - Constructs a MemCacheDrupal object.
File
- ./
memcache.inc, line 636
Class
- MemCacheDrupal
- Implementation of cache.inc with memcache logic included
Code
public function reloadVariables() {
$this->wildcard_flushes = variable_get('memcache_wildcard_flushes', array());
$this->invalidate = variable_get('memcache_wildcard_invalidate', MEMCACHE_WILDCARD_INVALIDATE);
$this->cache_lifetime = variable_get('cache_lifetime_' . $this->bin, variable_get('cache_lifetime', 0));
$this->cache_flush = variable_get('cache_flush_' . $this->bin);
$this->cache_content_flush = variable_get('cache_content_flush_' . $this->bin, 0);
$this->cache_temporary_flush = variable_get('cache_temporary_flush_' . $this->bin, 0);
$this->flushed = min($this->cache_flush, REQUEST_TIME - $this->cache_lifetime);
}