I Just made a test.

check os.stat('path/to/file') 100000 times. cost 2.11202 in a 512M-Ram vmware 
pc.

2009-11-04 



shwdai 



发件人: Anand Chitipothu 
发送时间: 2009-11-04  09:08:43 
收件人: webpy 
抄送: 
主题: [webpy] Re: About web.template 
 
On Wed, Nov 4, 2009 at 6:16 AM, shwdai <[email protected]> wrote:
> I found web.template cache the compiled template content in it's
> self._cache, but it can't check the orignal template file even if the
> template file has been changed. I add a modify_time flag in its cache, so
> now when template file changed, the compiled cache of this template will be
> automaticly renewed.
It is designed to use cache in production and no cache in dev.
checking mtime for each template invocation is too expensive.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to