Replace werkzeug SimpleCache by flask-caching #13

Merged
kparal merged 1 commit from werkzeug_1_0 into develop 2020-07-24 17:39:19 +00:00
Contributor
No description provided.
Contributor
IMO you should set cache type to simple, since the default is nullcache https://pythonhosted.org/Flask-Caching/#configuring-flask-caching https://pythonhosted.org/Flask-Caching/#nullcache
Contributor

Also, the flask-caching Cache needs to be set with an app object (https://pythonhosted.org/Flask-Cache/#set-up) Looks to me like you either are running some weird code, that is not really flask-caching, or you forgot to try and run/test the code after you made the changes ;)

Also, the flask-caching Cache needs to be set with an app object (https://pythonhosted.org/Flask-Cache/#set-up) Looks to me like you either are running some weird code, that is not really flask-caching, or you forgot to try and run/test the code after you made the changes ;)
Contributor

I just noticed the "not tested yet" comment. I'd appreciate if you used "WIP" or something like that right in the PR's title, next time, like you do in Oraculum, for example, so I don't need to get into the "how the hell can this work for him" rabbit hole :)

I just noticed the "not tested yet" comment. I'd appreciate if you used "WIP" or something like that right in the PR's title, next time, like you do in Oraculum, for example, so I don't need to get into the "how the hell can this work for him" rabbit hole :)
Author
Contributor

rebased onto b837055c82

rebased onto b837055c82a009ef7e79bf03587c0d0e9833b07e
Author
Contributor

I've fixed this mess, really sorry for not properly marking it as WIP.

It seems it works as it should now, data gets loaded from cache and there are no fires to put out.

I've fixed this mess, really sorry for not properly marking it as WIP. It seems it works as it should now, data gets loaded from cache and there are no fires to put out.
Contributor

👍 thanks! LGTM

:thumbsup: thanks! LGTM
Author
Contributor

Pull-Request has been merged by frantisekz

Pull-Request has been merged by frantisekz
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
quality/testdays-web!13
No description provided.