Project

General

Profile

Actions

Bug #95881

closed

Fluid cache.disable not working as expected

Added by Carsten no-lastname-given about 3 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Start date:
2021-11-05
Due date:
% Done:

0%

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

Description

Putting the following code in my Fluid Template I expected the time to get updated in the frontend each and every time.

Works only, if I do a force-refresh (STRG-F5 on Windows) and only, when logged into the backend.
Once I logged out of the backend, the output never changed except for adding parameter "?no_cache=1"

 <f:cache.disable>
        <f:format.date date="now" format="d.m.Y - H:i:s" />
    </f:cache.disable>
Actions #1

Updated by Stefan Bürk about 3 years ago

As the documentation says, this viewhelper only disable the template compiling. The name is eventually confusing, as it do not create a "uncached part" like USER_INT things, and also do not prevent page cache.
As such, your described behaviour is the intended behaviour.

See https://docs.typo3.org/other/typo3/view-helper-reference/10.4/en-us/typo3fluid/fluid/latest/Cache/Disable.html#cache-disable

ViewHelper to disable template compiling

Inserting this ViewHelper at any point in the template, including inside conditions which
do not get rendered, will forcibly disable the caching/compiling of the full template file
to a PHP class.

Use this if for whatever reason your platform is unable to create or load PHP classes 
(for example on read-only file systems or when using an incompatible default cache backend).

Passes through anything you place inside the ViewHelper, so can safely be used as container 
tag, as self-closing or with inline syntax - all with the same result.
Actions #2

Updated by Simon Praetorius over 1 year ago

  • Status changed from New to Resolved

I'm closing this as the issue doesn't seem to be related to Fluid. If that's not the case, feel free to comment here and I'll reopen the issue.

Actions #3

Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF