Actions
Bug #95043
closedResult, if page has subpages, can have two results but is only cached once
Start date:
2021-08-31
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:
Description
When creating a menu for each page the isSubMenu($uid) function is called. Is checks, if a page has subpages or not. The result depends on the given configuration for "includeNotInMenu".
But the return value is cached - and for this cache, the includeNotInMenu-setting is not taken into account.
Example: My page has one subpages, it has nav_hide = 1.- My first menu is breadcrumb, we include nav_hide-pages. The result: isSubMenu returns true - there is one subpage.
- My main nav doesn't include nav_hide-pages. The result: is SubMenu should return false (there are no subpages, when nav_hided-pages are not taken into account), but it returns true - the cached value of my first call is returned.
Actions