From d88437a387961d4c4522fd0296b503979e870e64 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawlOZwjbAGf3IHg4nlUhHswqYhUgfRGVb7Q" Date: Wed, 4 Dec 2013 11:35:26 -0400 Subject: [PATCH] --- doc/forum/Force_rebuild_of_page_using_some_plugin.mdwn | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/forum/Force_rebuild_of_page_using_some_plugin.mdwn diff --git a/doc/forum/Force_rebuild_of_page_using_some_plugin.mdwn b/doc/forum/Force_rebuild_of_page_using_some_plugin.mdwn new file mode 100644 index 000000000..3880a89e6 --- /dev/null +++ b/doc/forum/Force_rebuild_of_page_using_some_plugin.mdwn @@ -0,0 +1,5 @@ +I'm writing a plugin and I'd like to force all the pages that include a directive which my plugin defines to be rebuilt when the wiki is refreshed (whether or not those pages have changed). + +I've found the "needsbuild" hook which I could use to get pages to be rebuilt. But how can I work out which pages include my directive? And will needsbuild get called for every occurrence of my directive? I only need to rebuild those pages once (obviously). When the needsbuild hook gets called, is it because the directive match its 'id' hook() parameter has been encountered? And does needsbuild know what page is being processed? + +Or is there some other way of doing this? -- 2.39.5