You are here

public function RestfulBase::clearResourceRenderedCache in RESTful 7

Clear all caches corresponding to the current resource.

File

plugins/restful/RestfulBase.php, line 1335
Contains RestfulBase.

Class

RestfulBase
Class \RestfulBase

Code

public function clearResourceRenderedCache() {

  // Build the cache ID.
  $version = $this
    ->getVersion();
  $cid = 'v' . $version['major'] . '.' . $version['minor'] . '::' . $this
    ->getResourceName();
  $this
    ->cacheInvalidate($cid);
}