aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawlOZwjbAGf3IHg4nlUhHswqYhUgfRGVb7Q <Richard@web>2013-12-04 11:35:26 -0400
committeradmin <admin@branchable.com>2013-12-04 11:35:26 -0400
commitd88437a387961d4c4522fd0296b503979e870e64 (patch)
tree885f903baabd86a2731dd642d1fb0d7c7f30e0d2
parentdb543d7ba5b22c236d0827fff4ebf28c6867b9d7 (diff)
downloadikiwiki-d88437a387961d4c4522fd0296b503979e870e64.tar
ikiwiki-d88437a387961d4c4522fd0296b503979e870e64.tar.gz
-rw-r--r--doc/forum/Force_rebuild_of_page_using_some_plugin.mdwn5
1 files changed, 5 insertions, 0 deletions
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?