diff --git a/js.module b/js.module index c3ee318..8f463bd 100644 --- a/js.module +++ b/js.module @@ -625,7 +625,8 @@ function js_execute_request() { function _js_cache_initialize() { global $conf; - // We do not rely on autoloading as it may trigger a DB bootstrap. + // Skip autoloading, we do not need its overhead. Additionally it may trigger + // cache initialization. module_load_include('php', 'js', 'src/JsProxyCache'); // Collect all the explicitly configured cache bins. diff --git a/src/JsProxyCache.php b/src/JsProxyCache.php index 7ed14c2..a8ccbeb 100644 --- a/src/JsProxyCache.php +++ b/src/JsProxyCache.php @@ -66,7 +66,8 @@ class JsProxyCache implements DrupalCacheInterface { $this->backend = new $class($bin); } else { - throw new LogicException('The JS cache handler was not properly configured'); + $message = 'The cache backend configuration for the JS proxy cache handler is invalid: @conf'; + throw new LogicException(format_string($message, array('@conf' => print_r(static::$conf, TRUE)))); } }