4 ms·
Use a cron job to delete all the generated graphs every minute. That doesn't strike me as all that great of a solution, since (at least naively) this is going
by mnarayan01 12y ago
Use a cron job to delete all the generated graphs every minute.
That doesn't strike me as all that great of a solution, since (at least naively) this is going to result in a small (but presumably non-trivial) number of 404s on initial load.
I guess if it's just a stopgap until a better solution could be implemented then it's fine.
- cperciva 12y agoIf you mean the race between "create graph" / "graph is requested by browser" and deletion, that can be mitigated by not deleting any files which have been modified recently.