[performance] DB caching for \Drupal\taxonomy\TermStorageController::loadTree()

Created on 31 December 2006, over 18 years ago
Updated 14 April 2025, 28 days ago

Maybe this is a support request because of my brain not working...

When taxonomy_get_tree() gets called it stores the tree in static vars for that page load, but if you programmatically create a term, say with drupal_execute(), then try to add a node to that term with drupal_execute() it will tell you you have selected an illegal choice. I've attached a patch to illustrate my point, but I'm sure it could get cleaned up.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

taxonomy.module

Created by

πŸ‡ΊπŸ‡ΈUnited States RobRoy

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024