abs0lut3pwn4g3 / RTB-CTF-Framework

A fast, efficient and lightweight (~100 KB) Capture The Flag framework inspired by the HackTheBox platform. Built with Flask.
https://rtbctfframework.up.railway.app/
GNU Affero General Public License v3.0
108 stars 55 forks source link

Use signals for clearing cache #78

Open eshaan7 opened 3 years ago

eshaan7 commented 3 years ago

Currently, we just call the same clear cache helper functions from different places like admin view, template views.

It would be a better approach to connect to the SQLAlchemy signals (for example, an on_update) to dispatch such cache clear methods.