Script timeout on term weight update

Created on 5 November 2012, almost 13 years ago
Updated 27 June 2025, about 2 months ago

I have huge vocabulary - about 35000 terms.
And when i make simple operation of changing term's weight, my script goes into timeout.
It happens because of taxonomy_term_save() call in taxonomy_manager_update_weights() function.
When i fall deeper, i found that pathauto module implements hook_taxonomy_term_update() and update aliases for ALL children of terms. Evident that this operation could not be completed - when we move top level term, aliases of 35000 terms updated...

I think we could make a workaround for that case and don't update aliases on weight changing.
See patch.

🐛 Bug report
Status

Closed: outdated

Component

Code

Created by

🇷🇺Russia IRuslan

Live updates comments and jobs are added and updated live.
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.

Production build 0.71.5 2024