From 255835660b91e601b250bffe5a00751767b43f87 Mon Sep 17 00:00:00 2001 From: bremner Date: Sat, 8 Aug 2009 16:48:00 -0400 Subject: question (for joeyh?) about IkiWiki::refresh() --- doc/plugins/contrib/postal/discussion.mdwn | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 doc/plugins/contrib/postal/discussion.mdwn (limited to 'doc/plugins/contrib/postal/discussion.mdwn') diff --git a/doc/plugins/contrib/postal/discussion.mdwn b/doc/plugins/contrib/postal/discussion.mdwn new file mode 100644 index 000000000..90113eb41 --- /dev/null +++ b/doc/plugins/contrib/postal/discussion.mdwn @@ -0,0 +1,15 @@ +It seems like the filter 'postal-accept.pl' I wrote doesn't refresh thoroughly enough. When a comment is added it calls + + IkiWiki::add_depends($page,$comments_page); + +And then after adding the actual comment, it ends with + + IkiWiki::refresh(); + IkiWiki::saveindex(); + +Sure enough, the page being commented on is refreshed, but not any inline pages (e.g. tags pages, blog top level) that contain it. +Is there a way to recursively refresh? Or should it work that way by default. I guess it is some part of the api that I don't understand, +since I think not many people grub about in the internals of ikiwiki this way. +It would be nice to figure this out, doing a full rebuild every time I get a blog comment is not that fun. + +[[DavidBremner]] -- cgit v1.2.3 From eb5e6b2bb63a7e1096e6f16ecc9d5bf881b23983 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 8 Aug 2009 17:01:10 -0400 Subject: response --- doc/plugins/contrib/postal/discussion.mdwn | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc/plugins/contrib/postal/discussion.mdwn') diff --git a/doc/plugins/contrib/postal/discussion.mdwn b/doc/plugins/contrib/postal/discussion.mdwn index 90113eb41..3e6d056e2 100644 --- a/doc/plugins/contrib/postal/discussion.mdwn +++ b/doc/plugins/contrib/postal/discussion.mdwn @@ -13,3 +13,10 @@ since I think not many people grub about in the internals of ikiwiki this way. It would be nice to figure this out, doing a full rebuild every time I get a blog comment is not that fun. [[DavidBremner]] + +> Ikiwiki currently doesn't have support for transitive dependencies. +> This is discussed deep inside [[todo/tracking_bugs_with_dependencies]] +> and in [[todo/inlines_inheriting_links]]. +> +> FYI, the [[plugins/comments]] plugin avoids this problem by only showing the +> comments on the page, and not on pages that inline it. --[[Joey]] -- cgit v1.2.3 From 3c1ebd20f84f1ec654105340a1d7c28dd3748557 Mon Sep 17 00:00:00 2001 From: bremner Date: Sat, 8 Aug 2009 17:19:07 -0400 Subject: ok, thanks. I'll probably do the same. --- doc/plugins/contrib/postal/discussion.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/plugins/contrib/postal/discussion.mdwn') diff --git a/doc/plugins/contrib/postal/discussion.mdwn b/doc/plugins/contrib/postal/discussion.mdwn index 3e6d056e2..4eaacc044 100644 --- a/doc/plugins/contrib/postal/discussion.mdwn +++ b/doc/plugins/contrib/postal/discussion.mdwn @@ -20,3 +20,5 @@ It would be nice to figure this out, doing a full rebuild every time I get a blo > > FYI, the [[plugins/comments]] plugin avoids this problem by only showing the > comments on the page, and not on pages that inline it. --[[Joey]] +>> Ok, thanks for the speedy response. I guess I should do the same thing. +>> [[DavidBremner]] -- cgit v1.2.3