protected function XcacheCache::checkAuthorization

Checks that xcache.admin.enable_auth is Off

Return value

void

Throws

\BadMethodCallException When xcache.admin.enable_auth is On

2 calls to XcacheCache::checkAuthorization()
XcacheCache::doFlush in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/XcacheCache.php
Deletes all cache entries.
XcacheCache::doGetStats in drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/XcacheCache.php
Retrieves cached information from data store

File

drupal/core/vendor/doctrine/common/lib/Doctrine/Common/Cache/XcacheCache.php, line 87

Class

XcacheCache
Xcache cache driver.

Namespace

Doctrine\Common\Cache

Code

protected function checkAuthorization() {
  if (ini_get('xcache.admin.enable_auth')) {
    throw new \BadMethodCallException('To use all features of \\Doctrine\\Common\\Cache\\XcacheCache, you must set "xcache.admin.enable_auth" to "Off" in your php.ini.');
  }
}