EntityStorageBase::save() does not update the static entity cache

Created on 15 September 2017, about 7 years ago
Updated 3 May 2023, over 1 year ago

Problem/Motivation

When saving new entities, and loading them later, they are loaded directly from their persistent storage, because EntityStorageBase::save() does not update the class's static entity cache like ::loadMultiple() does.

Proposed resolution

Make EntityStorageBase::save() update the static entity cache.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs work

Version

10.1

Component
Entity 

Last updated about 10 hours ago

Created by

🇬🇧United Kingdom Xano Southampton

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia mstrelan

    The patch no longer applies to 10.1.x. I ran the test only patch locally against 10.1.x and it is failing, so this is still relevant. In saying that, I'm wondering why the patch is setting the static cache for new entities only, while currently it only resets the cache for existing entities?

  • Issue was unassigned.
Production build 0.71.5 2024