[dokuwiki] Re: DokuWiki Farms Idea

Andreas Gohr writes:

My idea was to add a new event DOKU_INIT. This would allow to create an
action
plugin which interferes with DWs init process where all the constants are
defined.

I'm not 100% I understood you correctly, but this is a bit of a
chicken-egg problem. DokuWiki needs to know where to look for plugins
to load them. It will need the constants your plugin wants to define
to find the plugin to define the constants to...

Yep, but the plugins are shared between the farms, so, you could initialize
the constants which are common to all instances first like DOKU_PLUGIN etc.
then fire up the event hook before stuff like DOKU_CONF, DOKU_URL  and the
like is set which differs per instance. At least that's how I could imagine
that this could work ;). Maybe I forgot about other caveats here?

        Chi

Other related posts: