If you’re using Newspublisher to publish the articles, then I think there is a &clearcache snippet parameter to make Newspublisher clear the cache once the document has been created.
Garry Nutting
Senior Developer
MODX, LLC
Email:
[email protected]
Twitter: @garryn
Web: modx.com
-
- 8 Posts
Thank you very much, this has solved the problem.
I might just add that calling Ditto uncached on a live site is asking for problems. Ditto is fairly efficient, but since new pages require the cache to be regenerated anyway, I do not see a benefit in having uncached Ditto calls anywhere in my sites. This way, the only time Ditto is required to query the database and process all the information it needs to in order to render the content is just once after the cache is cleared. This of course, will not work with Ditto’s internal paging features, but for calls that do not incorporate paging, this is one of my general rules.