Re: Patch for simple walk caching
will guaraldi <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.devel |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 9 Dec 2004, Bill Mill wrote:
>
> It's really simple to modify the caching to work only for those two
> files. Put this in your config.py:
>
> py['cache_only'] = ['pyblosxom.cgi', 'root', 'index.rss'] # '' gets
> changed to root
>
> and then change
>
> if config.get('cache_dir'):
>
> to
>
> p = http.get('PATH_INFO', '').lstrip('/') or 'root'
> if config.get('cache_dir') and p in config.get('cache_only'):
Woah! That's slick!
/will
-------------------------------------------------------
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/