#22789Calls to t3lib_befunc::translationCount slow down backend
Description
If you have lot of content elements on a page and view it in the page module (Web>Page) it renders very slowly because of multiple calls to the function translationCount (which is called regardless of available alternative languages). #22341 already adds the index (for 4.4) – but the function should not be called if it’s not needed – which is most of the time:
It gets called to render the message that appears in the alert box if you press “delete element”. So the message is needed only when it’s actually pressed, but no need to render e.g. 70 messages and call the function 70 times if you don’t delete any element in the end.
(issue imported from #M14592)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.