mercredi 24 février 2016

Call a rails 3 controller action after server startup

We have a rails 3 controller action that calls a remote api & caches the response. Unfortunately it's a slow process, so the first person to call that action has to wait quite a long time for the response. How can I call this controller action when rails starts (or at some point soon after) so the first user does not have to have that long delay.

Thanks in advance

Aucun commentaire:

Enregistrer un commentaire