Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
tac_lite_node_grants() checks users grants for each node on the requested page. On node summary or list pages this happens many times and is a waste of processing since the grants are not node specific. The following patch creates a static variable $grants that is keyed by user ID and node op. The data stored in the static variable is very small. Also always returns an array (even if empty) as specified in hook_node_grants().
Comment | File | Size | Author |
---|---|---|---|
#1 | tac_lite-optimize_node_grants-2465797-1.patch | 1.2 KB | tinker |
Comments
Comment #1
tinker CreditAttribution: tinker commented