The code needs to be added to the sys folder where the records are edited. Change the example page ids to the ones which should be cleared, e.g. a page with an RSS feed. You can use:
TCEMAIN.clearCacheCmd = 123,456,789
Add this to PAGETS on the page, where the records are.