You are here

function RespImgPageCache::clear in Responsive images and styles 7

Implements DrupalCacheInterface::clear().

Overrides DrupalDatabaseCache::clear

File

./cache.inc, line 23

Class

RespImgPageCache

Code

function clear($cid = NULL, $wildcard = FALSE) {
  if ($this
    ->checkCookie() && !empty($cid) && !$wildcard) {
    if (is_array($cid)) {
      foreach ($cid as $key => $c) {
        $cid[$key] = $c . '_' . $_COOKIE[RESP_IMG_COOKIE];
      }
    }
    else {
      $cid .= '_' . $_COOKIE[RESP_IMG_COOKIE];
    }
  }
  parent::clear($cid, $wildcard);
}