I have a box in the rightbar of my website named "top users per week". So, for a week, the content of that box will not change. So I can store that data in two ways:
- Using a table database (and update it weekly by an event)
- Using a file and update it weekly with a cron jobs
Now I want to know, which one is better and has a smaller cost? I mean executing a
select query is more optimal or opening a text file on the server using
explode() it ?