Project

General

Profile

Actions

Bug #15690

closed

T3 V10: Logged in backend user causes loading problems in frontend

Added by Enis Nuredini 3 months ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Carsten Rose
Target version:
Start date:
01.03.2023
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
Discuss:
Prio Planung:
No

Description

Ist der User im T3 Backend eingeloggt so ist ein komisches Caching Verhalten im Frontend aktiv. Durch Formulare geänderte Daten werden nach dem ersten "Back to history" oder Form Load nicht geändert angezeigt. Erst durch einen manuellen Page Reload erscheinen die frischen Daten. Das Problem ist nicht vorhanden wenn der User selbst nicht im Backend eingeloggt ist.

Dies ist ebenfalls ein T3 V10 spezifisches Problem welches in den älteren Versionen nicht auftritt.


Subtasks 1 (0 open1 closed)

Bug #15692: T3 V10: Template groups strange behaviourRejectedSupport: Web01.03.2023

Actions
Actions #1

Updated by Enis Nuredini 3 months ago

  • Tracker changed from Support to Bug
Actions #2

Updated by Enis Nuredini 3 months ago

Mögliche Probleme:
- Etags
- Cache Control: no-store Variable wird nicht gesetzt wenn im Backend eingeloggt.

Actions #3

Updated by Enis Nuredini 3 months ago

Eine neue Lösung wurde gefunden:
Im .htaccess File der Seite einen neuen Modul-Eintrag machen:

<ifModule mod_headers.c>
 Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" 
</ifModule>

Damit wird der no-store auch im eingeloggten Backend ausgeführt.

Ist im QFQ Wiki bei T3 V10 Best Practice eingetragen: https://project.math.uzh.ch/projects/qfq/wiki/T3_V10_Best_Practice#section-8

Actions #4

Updated by Enis Nuredini 3 months ago

  • Status changed from New to Closed
Actions #5

Updated by Enis Nuredini 3 months ago

Noch keine Lösung über T3 Config gefunden.

Actions #6

Updated by Enis Nuredini 3 months ago

  • Status changed from Closed to Feedback
  • Assignee changed from Support: Web to Carsten Rose

Folgendes TypoScript ausprobiert:

page = PAGE
page.10 = COA
page.10 {
    cache.lifetime = 0
    10 = TEXT
    10 {
        data = date : U
        strftime = %H:%M:%S
        noTrimWrap = |10: | |
    }
    20 = TEXT
    20 {
        data = date : U
        strftime = %H:%M:%S
        noTrimWrap = |20: | |
    }
}

Als eigenes Template auf Root oder einzelne Seite funktioniert es nicht da UZH-Template überschrieben wird. Eintrag ins ext/uzh_cd_template/Configuration/TypoScrpt/lib/9999_main.typoscript (im Block 'page' vor allem anderen als erste Zeile) hat keine Änderungen bewirkt beim Caching. Der benötigte Content für im TypoScript der UZH Extension sieht wie folgt aus (Der Rest trägt nicht zur Funktionalität bei sondern dient nur zur Ausgabe des Datums):

10 = COA
10 {
    cache.lifetime = 0
}

Wie bereits erwähnt passiert keine effektive Änderung in Verwendung dieses Typoscripts.

Actions #7

Updated by Enis Nuredini 2 months ago

  • Status changed from Feedback to Closed

Es gibt ein Best Practice wie man es in der Serverkonfiguration forcieren kann: https://project.math.uzh.ch/projects/qfq/wiki/T3_V10_Best_Practice
Problem betrifft nur Dev da dort im Backend parallel gearbeitet wird.

Actions

Also available in: Atom PDF