You are here

protected function RestfulBase::clearRenderedCache in RESTful 7

Clear an entry from the rendered cache.

Parameters

array $context: An associative array with additional information to build the cache ID.

See also

\RestfulEntityInterface::viewEntity().

2 calls to RestfulBase::clearRenderedCache()
RestfulDataProviderDbQuery::update in plugins/restful/RestfulDataProviderDbQuery.php
Update an item based on the request object.
RestfulDataProviderVariable::variableSet in plugins/restful/RestfulDataProviderVariable.php
Sets a variable value.

File

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

Class

RestfulBase
Class \RestfulBase

Code

protected function clearRenderedCache(array $context = array()) {
  $cache_info = $this
    ->getPluginKey('render_cache');
  if (!$cache_info['render']) {
    return;
  }
  $cid = $this
    ->generateCacheId($context);
  return $this
    ->getCacheController()
    ->clear($cid);
}