Skip to content

Cache files not deleted for pages containing news pluginsΒ #458

@seirerman

Description

@seirerman

Bug Report

Since the update from TYPO3 12.4.x to 13.4.19 and staticfilecache 15.2.3/news 12.3.1 about a week ago I've had a few editors complain that their new or updated news records are not shown in the frontend.
Whenever that happened I checked the SFC files in /typo3temp/assets/tx_staticfilecache/, and they were created before the news record that was just saved before. This means that they were not deleted after the editor saved the news record.

This only happened a handful of times, but I haven't been able to reproduce it consistently. Most of the time changes in the backend are immediately shown in the frontend, and the SFC files are generated without issues. In all cases there were plugins from the news extension on the affected pages. Pages with only regular content elements haven't been affected, at least for now.

There is no error visible in the frontend or in the log.

I was able to "fix" it temporarily by clearing the frontend cache of all pages, because clearing the cache of only the affected page (with the button in the backend) or saving a content element of the same page didn't purge the SFC files.

I've set config.cache.* for pages containing news records, so that the update or creation of a news records triggers the purge of the SFC files on specified pages:
https://docs.typo3.org/m/typo3/reference-typoscript/13.4/en-us/TopLevelObjects/Config.html#setup-config-cache
config.cache_clearAtMidnight = 1 is also set.

As a workaround I've set the cache lifetime for pages with news plugins to x minutes, so that updated news records at least show up within a reasonable timeframe.

Any idea why that happens? Can anybody else confirm this?

Environment

  • TYPO3 version(s): 13.4.19
  • staticfilecache version: 15.2.3
  • news: 12.3.1
  • Is your TYPO3 installation set up with Composer (Composer Mode): yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions