Project

General

Profile

Actions

Bug #88204

closed

Page Caching with restricted pages in page tree breaks menu

Added by Walter Sparding over 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2019-04-25
Due date:
% Done:

0%

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

Description

Using TYPO3 9.5.5 PHP 7.2.17

I have a multi-level-menu, which contains restricted pages for frontend-users.

The menu is always fine, until nobody is logged in.

If i logout as fe_user the menu breaks.

At the part of the menu, where the restricted page exists, it does a ul for the submenu, but the /ul is missing, and the restricted page is not in the menu. It seems, as TYPO3 somehow knows, there is a submenu, but then realizes, that the user (session?) is not logged in, and therefor may not see this page.

This gets more weird if i open 2 browsers with the same page one logged in, the other not. If i then clear all caches and reload in browser1 the menu is ok, but when reloading browser2 the menu is broken for browser2.

After struggling deeper and deeper, i found out that setting cache_hash of the cacheConfiguration to TYPO3\CMS\Core\Cache\Backend\NullBackend all is working right the way it should.

Setting back to default Cache TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend breaks the menu again.

IMHO that is not a error in TS of the menu, cause the menu is always right, when all caches are cleared.

Actions

Also available in: Atom PDF