willkg / douglas

DEAD PROJECT: File based static rendering blog system
Other
2 stars 3 forks source link

filestat should cache results #20

Closed willkg closed 10 years ago

willkg commented 10 years ago

In implementing ignore_future, I moved some things around and changed some callback arguments. One result of that is that tools.filestat no longer caches the results on the Result data dict.

It should probably be fixed to cache results again.

willkg commented 10 years ago

I added memoizing to run_callback, so this is done now. Landed in ab04811.

Further, it turned out to not be a big deal since plugins that handle cb_filestat can more effectively memoize themselves.