Project

General

Profile

Actions

Bug #87729

closed

MenuProcessor can't cache

Added by Christian Toffolo about 5 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Performance
Target version:
-
Start date:
2019-02-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

It's impossible to cache menu generated using MenuProcessor.

MenuProcessor Configuration contains invalid Arguments: cache.

Processing HMENU is an intensive process especially with expAll=1.
Using MenuProcessor actually means that the menu is processed at each page call (if the page is not yet cached)

Also, since actually MenuProcessor hard-code ACT and CUR, it could be useful to implement a feature that automatically caches the menu without ACT and CUR and then it overrides the cached menu, setting ACT and CUR over the cached menu.
See: https://gist.github.com/julrich/d91c1ac1968418e6ae8290f2a2e90afb


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #57953: Rendering time of HMENU is really bad, maybe bug?Closed2014-04-15

Actions
Related to TYPO3 Core - Bug #98985: Property "cache" is not included in MenuProcessorResolved2022-11-03

Actions
Actions #1

Updated by Susanne Moog about 5 years ago

  • Category set to Performance
Actions #2

Updated by Jarvis H almost 5 years ago

  • Related to Bug #57953: Rendering time of HMENU is really bad, maybe bug? added
Actions #3

Updated by Benni Mack about 4 years ago

  • Status changed from New to Closed

Hey Christian,

this is not really related to MenuProcessor (see the related issue) but HMENU sucks big time. I heavily recommend using EXT:menus (https://github.com/b13/menus) which solves all issues regarding caching for TYPO3 v9+.

Actions #4

Updated by Anonymous over 1 year ago

  • Related to Bug #98985: Property "cache" is not included in MenuProcessor added
Actions #5

Updated by Anonymous over 1 year ago

Benni Mack wrote in #note-3:

Hey Christian,

this is not really related to MenuProcessor (see the related issue) but HMENU sucks big time. I heavily recommend using EXT:menus (https://github.com/b13/menus) which solves all issues regarding caching for TYPO3 v9+.

I recommend not using `put into any feature from TYPO3 core`. That is not the advice I'd like to get from the TYPO3 project lead.

Actions #6

Updated by Benni Mack over 1 year ago

Ingo Fabbri wrote in #note-5:

I recommend not using `put into any feature from TYPO3 core`. That is not the advice I'd like to get from the TYPO3 project lead.

I don't understand the sentence, can you rephrase?

Actions #7

Updated by Christian Toffolo over 1 year ago

Benni Mack wrote in #note-6:

Ingo Fabbri wrote in #note-5:

I recommend not using `put into any feature from TYPO3 core`. That is not the advice I'd like to get from the TYPO3 project lead.

I don't understand the sentence, can you rephrase?

Ingo dislikes the fact that you recommend to not use a TYPO3 core feature :)

Actions #8

Updated by Sybille Peters over 1 year ago

Ingo dislikes the fact that you recommend to not use a TYPO3 core feature :)

In other words: "fix it in core". Which is probably the intention long term, I hope.

What I personally dislike is that you need a lot of "insider knowledge" to successfully use TYPO3. A lot of it you don't get from reading the documentation (though tremendous effort has been put into it and I think it has improved a lot). I regulary attend bar camps, user groups. I worked in the documentation team for a while. All that helped me, but I regularly have moments were I would like to bang my head against the wall.

I have been using TYPO3 for 10 years but I am regularly frustrated because it is so hard to really use it well and has an incredibly long learning curve, things are often changed and often there are "secret solutions" where you have to spend a lot of time and effort to even find out about it.

Why is the menu such a mess from a performance point of view that you need a third party extension (from the project lead)? After years.
Also this extension (b13/menus) does not clearly state that it is a solution for performance in the README.

How long does it take new people using TYPO3 to find out how to create a website (professionally)?

On the one hand, the association seems to be putting effort to send people to other events (Symfony etc.), to create a "TYPO3 book", to make TYPO3 known or easier to use. On the other hand it still feels like a secret circle or cult where you cannot participate unless you spend a lot of time in camps and in Slack (or working somewhere where there is a good onboarding process and you have a sufficient amount of colleagues who specialize and share knowledge also helps).

Is TYPO3 a finished project? If yes, then you can put effort into marketing.

If not, I think zero effort should be put into marketing and 100% effort into fixing it.

Actions #9

Updated by Christian Toffolo over 1 year ago

This is not the best place to discuss it but I agree 100% with everything Sybille has written. And this is either a big coincidence or apparently a common problem.

Whenever I have to do something in TYPO3 I basically spend half my time figuring out why something isn't working instead of building or improving things.

For the past 4 months I have been working on upgrading to TYPO3 11 and PHP 8 (from TYPO3 10 and PHP 7) and the time it took me to figure out why things weren't working went from 50% to about 90%.

I have always had the impression that TYPO3 is "sold" as a car to compete in Formula 1. Unfortunately, then one realizes that in this splendid and modern car a bolt does not screw or a button is missing in the steering wheel and all this potential is canceled immediately. In the end, you certainly can't win the championship like that.

And then I wonder, why all this rush to release major versions with related breaking changes and new little useful features instead of stabilizing the current version as best as possible? Is it a question of ELTS economies?

I'm sorry to be so negative, I still love many things about TYPO3, but over the years my frustration has grown and at some point the rope breaks.

Actions #10

Updated by Benni Mack over 1 year ago

Thanks for your feedback. I am also frustrated.

Actions

Also available in: Atom PDF