Re: pyblosxom 2.0: entry level caching
"Will Guaraldi" <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On 8/30/07, Ryan Barrett <pyblosxom-6sb6M7qyT/[email protected]> wrote: > > when there are multiple cache plugins, we'd need to know the order to call > them. i assume we'd have a py_cache_plugins config variable that lists them, > in order? > > otherwise, +1 for this. There's no need to do that because the order in which plugins are listed in the ``load_plugins`` property is the order in which plugins occur on the callback lists. So if ``cachepluginA`` has to go before ``cachepluginB``, then you list them in that order in ``load_plugins``:: py["load_plugins"] = ["cachepluginA", "cachepluginB"] There's only one exception to this. If the user doesn't set ``load_plugins``, the PyBlosxom loads all the plugins in the ``plugin_dirs``. In that case the plugins get loaded in order of the directories in ``plugin_dirs`` and for each directory they get loaded in alphabetical order. I'm pretty sure we note this in the documentation, but I should probably add a note to the "writing plugins" documentation so that plugin writers can explicitly state whether order is an issue in their plugin documentation. /will ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/