jazzband / django-fsm-log

Automatic logging for Django FSM

Home Page:https://django-fsm-log.readthedocs.io/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Log instance caching timeout is too low

frague59 opened this issue · comments

Hi,

While debugging an application using django-fsm-log, an error occurs at the end of the transition process, about the cached log instance is None, as the timeout only 10 seconds, which is too low for a "normal" debugging session.

I' would be nice to make this timeout configurable (for debugging purpose), and to get it from django settings.

I'll propose a PR for this...

Thanks !

I'm not opposed to make the cache duration configurable.
I never used the CacheBackend in our projects. I can't tell much. Feel free to make a pull request and we will take it from there.