简体   繁体   中英

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, eg when you have hundreds of news records and edit the news detail page.

Is there a way to disable this for specific pages?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM