Static Page Caching :: Automatic Cache
By popular request, there is now a tag that will cache a page when it is loaded for the first time by ExpressionEngine. Simply place the tag within your template and when a page is created based on that template, Static Page Caching will create a cache for it. On the next page load, the cached version will then be displayed!
Parameters
online_users_exceeds="50"
If this parameter is set, the page will not be cached until the number of online users exceeds the amount specified. The calculated number of online users is taken from ExpressionEngine's native Stats module and includes logged in members and guests.
Variables
None.
Examples
The following example will only cache the page when there is a third segment in the URL. For example, if you put this tag into the site/comments template, it would only cache a page when there is an entry id or url title included in the page's URI.