/**
  * Remove the expired pages
  */
 public function removeExpiredPagesCommand()
 {
     CacheUtility::getCache()->collectGarbage();
 }
 /**
  * Constructs this object.
  */
 public function __construct()
 {
     $this->cache = CacheUtility::getCache();
     $this->signalDispatcher = GeneralUtility::makeInstance(Dispatcher::class);
     $this->configuration = GeneralUtility::makeInstance(Configuration::class);
 }
 /**
  * Handles incoming actions (e.g. removing all expired pages).
  *
  * @return    void
  */
 protected function handleActions()
 {
     $action = GeneralUtility::_GP('ACTION');
     if (isset($action['removeExpiredPages']) && (bool) $action['removeExpiredPages']) {
         CacheUtility::getCache()->collectGarbage();
     }
 }