ikiwiki/doc/tips/howto_avoid_flooding_aggreg...

29 lines
1.3 KiB
Plaintext
Raw Normal View History

If you have a [[blog]] that is aggregated, either on a site like Planet
2007-04-14 22:29:32 +02:00
Debian, or just through user subscriptions, one common problem is that
2009-03-04 11:48:18 +01:00
changes to the guids of items in the blog can “flood” the aggregator,
2007-04-14 22:29:32 +02:00
causing all recent blog entries to be posted to the top of it.
This can happen in a lot of situations:
2009-03-04 11:48:18 +01:00
* Perhaps youve just switched to ikiwiki from some other blog engine and
2007-04-14 22:29:32 +02:00
imported your data.
2009-03-04 11:48:18 +01:00
* Perhaps youve turned on the `usedirs` setting, which changes all the
2007-04-14 22:29:32 +02:00
urls in your wiki. Even if you set up
[[redirections|redirections_for_usedirs]] for the old urls, you still face
the issue of flooding aggregators.
2009-03-04 11:48:18 +01:00
* Perhaps youve just moved stuff around in your wiki.
2007-04-14 22:29:32 +02:00
2009-03-04 11:48:18 +01:00
To avoid annoying readers in these situations, its a good idea to remove
any existing items from your blogs news feed. That way only new items will
show up in the aggregator. The best way to do this is to add a `feedpages`
parameter to the `inline` directive for your blog, with a condition such as:
2007-04-14 22:29:32 +02:00
feedpages=created_after(blog/posts/old_post)
2007-04-14 22:29:32 +02:00
2009-03-04 11:48:18 +01:00
Where “old_post” is the name of the last post you made to the blog before
making the change. This will limit the feed to only newer posts, while still
displaying the old posts in the blog page.
2008-07-12 16:53:57 +02:00
2008-07-12 16:59:45 +02:00
Alternatively, you can add the [[plugins/meta]] guid directives to pages,
2008-07-12 16:53:57 +02:00
to force the old url to be used.