In a Dynamic Page where most of the content are extrated from a backend database on the fly, the page would usually load slower. One of the reason, everytime the page loads, it has to connect to the database, retrieve data and display it on the page. Depending on how frequent the data in the database change. If it does not updated often, you can export those data to XML format. The said dynamic page, instead of loading data from database, will call to this XML file and retrieve the data – usually much faster. Basically, each time the page runs, it make sure today’s date is not older than the last modified date of the XML file. If yes, the page will request the database to create new and updated XML file.
Said you have a website and you wish to always total number of people login in a day. Well, total number, in most case, means you will have to go through the whole database and get this amount base on the total number of data found. Well, if this info needs to be shown in every page, it would be excessive load to the server. What you can do is, each time when new data inserted to the said database, update a field by increment the total number directly.
Keep up the good work.