public function __construct(CacheInterface $cache, LoggerInterface $logger)
 {
     $this->cacheInterface = $cache;
     $this->logger = $logger;
     $this->cacheReady = $cache->cacheReady();
     if (array_key_exists('jhm_disable_cache', $_COOKIE)) {
         $this->logger->log('DEBUG', 'jhm_disable_cache cookie detected; disabling cache engine.');
         $this->cacheReady = false;
         $this->cacheInterface->clear();
     }
     if (array_key_exists('cache-control', $_GET)) {
         $this->_cachecontrol(filter_var($_GET['cache-control'], FILTER_SANITIZE_STRING));
     }
 }