antispam_get_moderator_types is supposed to statically cache user permissions, but if a user is not moderator in any way it should cache that information, too. Currently it doesn't do that and it rechecks that user again on every function call.

CommentFileSizeAuthor
#1 antispam1906028.patch408 bytesabautu

Comments

abautu’s picture

Status: Active » Needs review
StatusFileSize
new408 bytes

Attaching patch

avpaderno’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)

I am closing this issue, since Drupal 4.x, 5.x, and 6.x are now not supported.