Allow configuring struture mutex timeout via config/app.php #17697
-
We are importing several hundred entries into a structured section via the GraphQL interface. This is understandable, as the operations Craft performs under the structure mutex (e.g., adjusting lft/rgt values) naturally take longer as the tree expands. Still, we’d like to handle this more gracefully by configuring the mutex timeout ourselves. Currently, the StructuresService uses a hardcoded mutex timeout of 3 seconds (see: cms/src/services/Structures.php Line 513 in 7a95af9
Alternatively, if the $timeout parameter were set to null or empty string, the configured default could take effect. Thanks for considering! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You can override that via return [
'components' => [
'structures' => [
'mutexTimeout' => 10,
],
],
]; |
Beta Was this translation helpful? Give feedback.
You can override that via
config/app.php
: