How to programitically trigger callbacks

I’m interested in how to programmatically trigger callbacks. I wan’t to make is so that my cached functions, which require expensive SQL queries, already have a cached result by the time a user interacts with it.

I’ve tried calling the functions, but it didn’t seem to ever register with the Flask file-cache by the time the server was running. Not sure why this was the case.

Any ideas on how to do this. Preferably a solution that doesn’t require Selenium :stuck_out_tongue: