mbraak/django-file-form

Make cache timeout configurable

sebhaase opened this issue · 6 comments

After some debugging I realised that there is a cache timeout fixed at 3600.
Please make this configurable in settings as
FILE_FORM_CACHE_TIMEOUT = 3600

I have big files and a slow network ;-)

I'll have a look.

I have a pr ready: #482 Could you have a look to make sure that it works?

I cannot test ist right now, but from the look of it, should it be ok. One should probably put this default of 1h timeout somewhere more prominently in the readme also. And/or change the default to 24h - meaning one would rather actively decide to set lower values, than wondering why it fails after 1h...

I changed the default to 24 hours.

The pr is merged. Closing this issue.