Basic functions for caching content in your SS templates.
Basic Caching Functionality For Page Templates
composer require sunnysideup/simple-template-caching
<!doctype html>
<html lang="$ContentLocale">
<head>
<title>example</title>
</head>
<body>
<% if $HasCacheKeyHeader %>
<% cached $CacheKeyHeader %>
<!-- cached header -->
<% include Header %>
<% end_cached %>
<% else %>
<% include Header %>
<% end_if %>
<% if $HasCacheKeyMenu %>
<% cached $CacheKeyMenu %>
<!-- cached menu -->
<% include Menu %>
<% end_cached %>
<% else %>
<% include Menu %>
<% end_if %>
<% if $HasCacheKeyContent %>
<% cached $CacheKeyContent %>
<!-- cached content -->
$Layout
<% end_cached %>
<% else %>
$Layout
<% end_if %>
<% if $HasCacheKeyFooter %>
<% cached $CacheKeyFooter %>
<!-- cached footer -->
<% include Footer %>
<% end_cached %>
<% else %>
<% include Footer %>
<% end_if %>
</body>
</html>
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem