Commit 32d59119 authored by catch's avatar catch

Issue #2635440 by damiankloip, deviantintegral, JvE, Spokje, Abhijith S:...

Issue #2635440 by damiankloip, deviantintegral, JvE, Spokje, Abhijith S: Document what cache clearing from ContentEntityStorageBase::resetCache() actually clears
parent d02178ba
......@@ -1063,7 +1063,15 @@ public function loadUnchanged($id) {
}
/**
* {@inheritdoc}
* Resets the entity cache.
*
* Content entities have both an in-memory static cache and a persistent
* cache. Use this method to clear all caches. To clear just the in-memory
* cache, use the 'entity.memory_cache' service.
*
* @param array $ids
* (optional) If specified, the cache is reset for the entities with the
* given ids only.
*/
public function resetCache(array $ids = NULL) {
if ($ids) {
......
......@@ -26,7 +26,7 @@ interface EntityStorageInterface {
const FIELD_LOAD_REVISION = 'FIELD_LOAD_REVISION';
/**
* Resets the internal, static entity cache.
* Resets the internal entity cache.
*
* @param $ids
* (optional) If specified, the cache is reset for the entities with the
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment