On Apr 27, 2009, at 09:56, Owen Winkler wrote:
> Assume you have a cache directory at /user/build. The theme would > output the stylesheet URL as /user/build/style.css (for example). > This > file does not yet exist in the directory. > > Because the file does not exist, the request is routed through Habari. > Habari, using rewrite rules that catch requests to the build cache, > notes the request and builds the file. The file is served, but is > also > saved into the correct location in the cache directory. > > The result is that on the next request, the file exists. Apache sees > that the file exists and serves it directly instead of routing through > Habari. The file is served much faster because there is no PHP > processing. ++1 Or a great big "REGENERATE THEME" button. Having to generate anything on the fly, every time, when it's exactly the same every time, is a waste of my precious milliseconds. -- I have nature and art and poetry, and if that is not enough, what is enough? (Vincent van Gogh) --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to habari-dev@googlegroups.com To unsubscribe from this group, send email to habari-dev-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/habari-dev -~----------~----~----~----~------~----~------~--~---