Forum Moderators: phranque
I've seen things like Wordpress plugins that do this automatically, at least for a full page by creating an html page that the server can dish up. Wondering if anyone had any ideas on where to start.
Thanks,
CWebguy
otherwise, if you are using SSI or php, for example, you could create static versions of the dynamic content with a cron script or whenever the content changes and include those static files in your template.
i started to roll my own cache with a classic asp site in a very unsophisticated way but it certainly helped a lot (eg, pages got served faster, it was a shared host and less db calls made the page was visibly faster at times)
at its simplest, i set up a scheduled task (win server) to run every 24 hours, which built a static text file of the nav column (for each category and the home page)
on all pages i then included the static file as an include rather than making a db call to get the data.
... from this small step you can get as sophisticated as you like - just think in advance of a decent naming structure for the static files (which could be whole pages or just parts of pages)
i'm now on apache with php and cache_lite has all kinds of built in functionality regarding locking files while being overwritten and so on.