An even more superior dynamic pagination, using Smarty

The Smarty pagination system I demoed previously worked great, but it didn't cache results. But, I've made it better.

In your main index, update your loop:

It is split whether dynamic publishing is enabled. If it is, pages will be generated dynamically by Smarty. If it's not, they will be generated by mt-search.cgi-- but using the Dynamic Search Forwarder.

Then, update your .htaccess...

... or web.config...

... to point to the pagination at /page/1..n.