You are here

function AbstractQueuedCachedClassLoader::setCachePrefix in X Autoload 7.5

Set the new cache prefix after a flush cache.

Parameters

string $prefix: A prefix for the storage key in APC.

Overrides CacheManagerObserverInterface::setCachePrefix

File

src/ClassLoader/AbstractQueuedCachedClassLoader.php, line 118

Class

AbstractQueuedCachedClassLoader
Bass class for cached class loader decorators where cache entries cannot be written one by one, but have to be written all at once instead.

Namespace

Drupal\xautoload\ClassLoader

Code

function setCachePrefix($prefix) {
  $this->classFiles = $this
    ->loadClassFiles($prefix);
}