I have a app that loads some json from my php web service. This information may update every hour or so.
Currently every time a user hits the url i requery the database and present the json results.
I am now getting a few more users and want to minimise the load on the server.
Is it better to run this way or run a cron job and read and write from a file.
i.e The cron does the query and saves to a local file. When the user hits the url i then read the query.
I have tested both and load time is about the same but i wonder how this effects the sever overall?
I don't think memchace is any good due to the amount of data returned.
Any tips or ideas would be great
Dan