Sven
Sven

Reputation: 802

TYPO3: Don't clear cache after editing content

When you edit content on a page, the TYPO3 frontend cache for this page is automatically cleared after saving the content element.

This results in massive performance problems, e.g. when you have hundreds of news records and edit the news detail page.

Is there a way to disable this for specific pages?

Upvotes: 2

Views: 928

Answers (2)

Bernd Wilke πφ
Bernd Wilke πφ

Reputation: 10791

The problem is the complete cache clearing.
If you add / edit one news the detail-view of all other news (normaly) is not involved.

A page TSconfig to clear all page caches of pages where news are displayed is to wide.

tx_news therefore uses cache-tags to clear selectively.
But this could result in too less caches been cleared. (bidirectional related news, lists, ...)

If you avoid a cache clearing after adding/editing news you will have problems that your changes will not be seen in public.
Avoiding caches at all (for these pages) will drastically reduce the performance of your page.

As caches normaly are cleared after a given time anyway, you might force this in a nightly task: clear all caches and rebuild it with a crawler/spider.

Upvotes: 0

Claus Due
Claus Due

Reputation: 4261

This might be possible with a DataHandler hook (this class registers pages whose caches must be flushed after an edit) but I certainly would not recommend doing this. Normally you want the cache to be cleared if you make a change to a page.

Upvotes: 2

Related Questions