Problem/Motivation
I'm updating a client site to 5.x from 2.x and rebuilding the entity usage table is taking a long time.
Proposed resolution
Entity revision caching added in #2620980: Add static and persistent caching to ContentEntityStorageBase::loadRevision() is causing issues.
Remaining tasks
There's no sensible way in core to disable revision caching a for a single process. Opened #3618977: Persistent revision caching needs a kill switch to discuss.
User interface changes
API changes
Data model changes
Issue fork entity_usage-3617820
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
Comment #3
alexpottComment #4
csakiistvanComment #5
csakiistvan✅ Tested and works — applied MR !237, ran
ddev drush cr, truncatedcache_entityand pressed "Recreate all entity usage statistics" on /admin/config/entity-usage/batch-update:cache_entitystays empty afterwards, while without the MR the same run left 13 revision entries behind. The bulk update no longer pollutes the persistent entity cache.Comment #7
alexpott