You are here

protected function RestfulStaticCacheController::registerCid in RESTful 7

Register cache ID. The registry is used by clearAll.

Parameters

string $cid: The cache ID to register.

1 call to RestfulStaticCacheController::registerCid()
RestfulStaticCacheController::get in includes/RestfulStaticCacheController.php
Gets the static cache.

File

includes/RestfulStaticCacheController.php, line 69
Contains RestfulStaticCacheController

Class

RestfulStaticCacheController
@file Contains RestfulStaticCacheController

Code

protected function registerCid($cid) {
  if (!in_array($cid, $this->cids)) {
    $this->cids[] = $cid;
  }
}