Problem/Motivation

When saving a user with a few content entities linked to the user (50+), I get an "Allowed memory size of x bytes exhausted".

Steps to reproduce

Leave memory limit at the default of 128M.
Enable this module and create (50+) content items (with entity references to 3 vocabularies) with the same user. Try saving the user profile.

Proposed resolution

Invalidate the cache in chunks to avoid using to much memory.

Remaining tasks

testing

User interface changes

None

API changes

None

Data model changes

None

Issue fork depcalc-3362315

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cgoffin created an issue. See original summary.

cgoffin’s picture

Here a patch to use in your projects.

cgoffin’s picture

Issue summary: View changes
cgoffin’s picture

Status: Active » Needs review
lamp5’s picture

Version: 8.x-1.16 » 8.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

Confirmed. The patch works. Thx