Problem/Motivation

_token_module() loads the full token info cache, which can be huge.

Steps to reproduce

Proposed resolution

Use a cache collector to cache the module only

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork token-3440371

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

Berdir created an issue. See original summary.

berdir’s picture

Status: Active » Needs review
berdir’s picture

Early testing shows that this saves about 5-6MB of memory on a site with a bunch but not huge amount of fields, I've seen token info caches that are a lot bigger.

berdir’s picture

Issue tags: +Performance

  • Berdir committed b7f3b195 on 8.x-1.x
    Issue #3440371 by Berdir: Use a cache collector for token module info
    
berdir’s picture

Status: Needs review » Fixed

Merging.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.