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

CommentFileSizeAuthor
#2 3534169-1.patch1.37 KBwebflo
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

webflo created an issue. See original summary.

webflo’s picture

Issue summary: View changes
Status: Active » Needs review
Issue tags: +Performance
StatusFileSize
new1.37 KB
webflo’s picture

Title: Improve performance for unpriviages users » Improve performance for unprivileged users

bluegeek9 made their first commit to this issue’s fork.

  • bluegeek9 committed 63685539 on 8.x-1.x
    feat: #3534169 Improve performance for unprivileged users
    
bluegeek9’s picture

//www.flaticon.com/free-icons/thank-you Thank you for your contribution! Your continued support makes this project sustainable.
There are multiple ways to show appreciation for the work contributed to this project including:
  • Triage issues and adding more context to existing issues.
  • Flagging Moderation Note as a favorite on the project page to help others discover it and show your support.
bluegeek9’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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