Problem/Motivation
_moderation_note_access is called ofter from moderation_note_preprocess_field. Checking user access is much faster, then looking for isModeratedEntity and isLatestRevision.
This saves 300ms on a my Drupal site on uncached pages.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3534169-1.patch | 1.37 KB | webflo |
Issue fork moderation_note-3534169
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 #2
webflo commentedComment #3
webflo commentedComment #7
bluegeek9 commentedComment #8
bluegeek9 commented