ikiwiki/doc/todo/plugin_dependency_calulatio...

25 lines
1.0 KiB
Plaintext
Raw Normal View History

2006-08-18 06:12:29 +02:00
A few plugins need more complex dependency calculations than ikiwiki can do
on its own:
* Use of a version plugin should only make the page rebuild when it's built
with a new version of ikiwiki.
* Some plugin might want to _always_ rebuild the page that uses it.
* If backlinks were turned into a plugin, it would need to make a page
rebuild when its backlinks changed.
These suggest there should be a way for plugins to have hooks that tweak
the list of pages to rebuild.
Which in turn suggests that there should *be* a list of pages to rebuild;
currently there's not, and the best such an interface could do would be to
rebuild the pages even if they were already going to be rebuilt for some
2006-08-27 07:38:57 +02:00
other reason. (See [[optimisations]].)
2006-08-18 06:12:29 +02:00
It also suggests that plugins will want to examine pages and/or
[[store_data|plugin_data_storage]] about them to use in the dependency
calculations. For example, the version plugin would need to store info
about what pages use it.
2007-08-04 08:27:02 +02:00
> I fixed this without realizing it when I added the needsbuild hook!
> --[[Joey]]