You are here

public function ResourceFactory::resetCache in D7 Media 6

Reset the shared static cache.

File

resource/resource.module, line 536
Resource API for Drupal, a replacement for files.

Class

ResourceFactory

Code

public function resetCache($cid = FALSE) {

  // no cache id, reset the entire cache.
  if (!$cid) {
    self::$resources = array();
  }
  elseif (isset(self::$resources[$cid])) {
    unset(self::$resources[$cid]);
  }
}