|
|
|
|
|
by reillys
700 days ago
|
|
Most people render the html on the server side and then you can just cache it wholesale. You could cache the page itself or even the article itself (I'm not talking about browser cache, I'm talking about caching on the web server). The idea being that you don't have to keep rendering or even hitting your DB for the content you just have a html fragment that you create once and cache and then serve. You'll only need to rebuild the content when the date expires so when "one year ago" becomes "two years ago" . |
|