On my index page I have a news section that gets updated with every page refresh... since I maintain the index throughout the site and include the sections in a DIV this can be a problem because every news update queries the mysql server... so every time the user clicks any link or refreshes the page a new query is run to update the news...
the problem is that the news probably won't be updated that often so this is just a waste and if many people are accessing the site simultaneously it would create a lot of useless mysql traffic...
i was thinking of storing the news as an .xml file because then I wouldn't have to redesign my entire site because afaik it wouldn't be as bad to constantly check an .xml file for changes vs querying the server.
but then i need a way to update the .xml file say once per hour or something similar...
can anyone help me with suggestions or workarounds? thanks! 🙂
the problem is that the news probably won't be updated that often so this is just a waste and if many people are accessing the site simultaneously it would create a lot of useless mysql traffic...
i was thinking of storing the news as an .xml file because then I wouldn't have to redesign my entire site because afaik it wouldn't be as bad to constantly check an .xml file for changes vs querying the server.
but then i need a way to update the .xml file say once per hour or something similar...
can anyone help me with suggestions or workarounds? thanks! 🙂