Add configurable caching to FilePathField
|Reported by:||pressureman||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
As noted by a couple of people on django-users, FilePathField does not automatically refresh choices if files are add to or removed from the path being pointed to (http://groups.google.com/group/django-users/browse_thread/thread/6778fa138b848996 and http://groups.google.com/group/django-users/browse_thread/thread/403d872cf9433905).
A nice addition to FilePathField would be the ability to control how long the choices are cached for, ranging from "never cached" to "cached forever" (or at least for the lifetime of the webserver process).