Hi --
I have a set of reporting scripts that generate HTML pages using Genshi and currently run in nightly batch mode. I would like to convert to a web application to allow on-demand generation. The primary configuration options are user and date, and thus a nice fit to url-based navigation. On occasion there may be other parameters that can be passed in http://www.example.com/joeuser/statusreport/2008/10/15/ http://www.example.com/joeuser/statusreport/latest/ http://www.example.com/joeuser/statusreport/latest/?exclude=completed,overdue ... etc ... I can figure out how to do most of this in web.py. The report generation itself, however, is sometimes processing intensive, so I would like to avoid making users wait in the browser if they don't need to -- I expect them to reference these web pages frequently. So I'd like to set up a caching mechanism that serves up unchaged reports quickly but allows users to force a refresh if needed. The users are reasonably sophisticated and on modern browsers, so I can easily tell them to click an update button that might send something like this instead: http://www.example.com/joeuser/statusreport/2008/10/15/?forceupdate=true Most of the caching documentation I've found seems to be related to caching template code. So my questions are: 1. Does web.py provide a mechanism for caching dynamically generated pages themselves? It looks like ETags may not be supported yet (or at least in a documented way) and I read through some of the archives that suggest that web.memoize() may have some issues. 2. Is the above the right idiom for web.py? Have folks come up with another recipe to accomplish this using that I could adopt? Thanks in advance, Ramon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
