Re: Patch for simple walk caching

will guaraldi <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
It's not a script--it's a function in the tools module.  It's definitely 
there, so I'm not sure why you can't see it.

I'm saying the infrastructure is there for static rendering instead of 
building a filelist cache.  You'd have to wrap the existing functionality 
in a plugin that would see the pathinfo, figure out if it's been rendered 
already, and return the rendering if it has.  If it hasn't been rendered 
already, then it would render and store the rendering to disk.

I'm not saying you have to do it this way--it's your plugin.  I'm just 
saying that I wrote code that currently exists in PyBlosxom that does 
something very similar to the problems you're trying to solve, though it 
does it in a different manner.

There aren't tests for anything in pyblosxom.  I'm pretty sure it works 
because I use those functions for static rendering and other folks say 
static rendering is working pretty well for them.  (shrug)

/will


On Tue, 7 Dec 2004, Bill Mill wrote:
>
> Based on a quick grep of my pyblosxom directory, it appears that there 
> is not a single example of a script which calls update_static_entry. Are 
> we even sure that the function works? Is there a test for it somewhere? 
> So, if I wanted to use it, I would have to update every plugin I use to 
> call it when a file changes?
>
> Actually, I think that my filelist cache allows every plugin in the 
> contrib directory to work without changes, with the exception of 
> logstats and lucene. Even comments should work. Why? Because my plugin 
> only affects the cb_filelist (directly) and cb_pathinfo (indirectly) 
> callbacks. All of the plugins in the contrib directory use other 
> callbacks that should still get run when using my cache.
>
> I'll run some tests today to verify this.
>
> Peace
> Bill Mill
> bill.mill at gmail.com


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.