Hi,
I have an application where I based on users selections generate a
dataset for them to download and a graph describing this data. The
graph is made with gnuplot and work really well - no problems
But I save the graph to a file say âgraph.pngâ in the public/images
dir and use it in the view. I have a strong felling that when more
than one user is generating graphs I will have a problem, since
theyâll keep overwriting the same graph again and again.
I realize that I could add some sort of session id or time stamp to
the image, but I donât want to fill my server with abandoned images
and the users are not likely to request the same image/graph again any
time soon.
Is there any concept like a temp store where all files more than 5
mins (or 1 day, donât matter old are deleted, or a round robin
scheme where abandoned filenames get recyled.
Have I missed some vital function, - or is it just a matter of a cron
job to clean up after a hard days job?
regards
Jan
â
You received this message because you are subscribed to the Google
Groups âRuby on Rails: Talkâ group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.