Issue Bug Closed

#95881Fluid cache.disable not working as expected

Carsten no-lastname-given 11/05/21, 10:59 updated 07/09/24, 12:45

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>

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 3

  1. Stefan Bürk commented 11/14/21, 19:20

    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.
  2. Simon Praetorius commented and changed status New Resolved 06/19/23, 09:32

    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.

  3. Benni Mack changed status Resolved Closed 07/09/24, 12:45