Sync problems or duplicated contents

If your campaigns create duplicated posts, or the source site has new articles but the campaign doesn’t get them, the cause is most likely a cache: a copy of the feed that is not updated when new content is published. The cache can be on your site or on the source site.

Why the Cache Causes These Problems
An old copy of the feed.

Cache plugins, and sometimes the cache of the hosting server, keep a copy of the pages to load them faster. If the feed is cached, the campaign reads that old copy until the cache is refreshed, so the new items don’t appear. Some badly cached feeds also show the same items again, or in a different order, and it looks like WPeMatico is duplicating them.

If the Cache Is on Your Site
The easiest case.

  • Clear the cache of your cache plugin and of your hosting.
  • Check the options of your cache plugin: many of them can exclude the feeds from the cache, or clear it every time a new post is published.
  • If your theme or plugin doesn’t clear the cache by itself, ask its developers if it supports dynamic content like feeds.
If the Cache Is on the Source Site
It doesn’t depend on you, but you can work around it.

  • Schedule the campaign after the cache refresh. If you know when the source site updates its cache, schedule the campaign to run a few minutes later in the Schedule Cron box. You can also run it less often, for example once a day, to be sure the cache was refreshed.
  • Check duplicates only by title. WPeMatico remembers the last item it read from each feed and stops when it finds it again. If a cached feed shows the items in a different order, the campaign may stop before reaching the new ones. In the Duplicate controls box of the campaign, check Don’t use general Settings, then Deactivate duplicate controls and Allow duplicates hashes. The campaign keeps checking duplicates by title.

Allow duplicates hashes option in the duplicate controls box of a wpematico campaign

Note: Never allow both duplicated titles and duplicated hashes at the same time: the campaign would fetch the same items again and again.

The best solution, anyway, is to contact the owner of the source site and ask them to refresh the cache of their feed when they publish new content.

Related FAQs