invalidateByHash example

/** * {@inheritdoc} */
  public function deleteAll() {
    $this->storage()->deleteAll();
  }

  /** * {@inheritdoc} */
  public function invalidate($cid) {
    $this->invalidateByHash($this->normalizeCid($cid));
  }

  /** * Invalidate one cache item. * * @param string $cidhash * The hashed version of the original cache ID after being normalized. */
  protected function invalidateByHash($cidhash) {
    if ($item = $this->getByHash($cidhash)) {
      $item->expire = REQUEST_TIME - 1;
      
Home | Imprint | This part of the site doesn't use cookies.