Edit file File name : TurboCache.html Content :<div ng-controller="A2OptTurboCacheController" ng-if="vars.currentController == 'TurboCache'"> <div class="panel panel-default" > <div class="panel-heading"> <ng-include src="'html_templates/Title.html'"></ng-include> </div> <div class="panel-body"> <alert type="info"> TurboCache is a caching system at the web server level. <br><br> The first time a page is requested: a static copy of the html to display the page is stored on the server.<br> Subsequent requests to pages that have been cached are served from the copy instead of running the scripts and database queries over and over again. <br><br> Running a static cache like TurboCache is one of the best ways to boost the performance of your site. </alert> <div class="panel panel-success" > <div ng-init="read_config(vars.selectedApp)" > <div class="pull-left" style="padding:15px;"> <h4 style="margin:0px">TurboCache</h4> </div> <div class="pull-right" style="padding:8px;" ng-if="!(vars.selectedApp.swiftcache.turbocache.enabled === true)" > <button class="btn btn-success pull-right" ng-click="enable(vars.selectedApp)">Enable</button> </div> <div class="pull-right" style="padding:8px;" ng-if="(vars.selectedApp.swiftcache.turbocache.enabled === true)" > <button class="btn btn-danger pull-right" ng-click="disable(vars.selectedApp)">Disable</button> </div> </div> <div style="clear:both"></div> </div> <div style="padding:10px" ng-if="vars.selectedApp.swiftcache.turbocache.enabled"> <alert type="info" ng-show="vars.selectedApp.swiftcache.turbocache.ttl_info"> <label class="btn btn-xs pull-right" ng-click="toggle_ttl_info(vars.selectedApp)" ><i class="glyphicon glyphicon-remove pull-right" style="color:grey" ></i></label> A cached page will exist for a specified time before a new one will be generated. <br><br> The recommended default "Time To Live" is 15 minutes. <br><br> If you would like your content to be more fresh: set this value very short. If you never change your site: set this value for a very long time. </alert> Time To Live: <i class="info glyphicon glyphicon-info-sign" style="cursor:pointer" ng-click="toggle_ttl_info(vars.selectedApp)" ></i> <select style="width:200px" class="form-control" ng-model="vars.selectedApp.swiftcache.turbocache.time" ng-options="time for time in times"></select><br> <alert type="info" ng-show="vars.selectedApp.swiftcache.turbocache.url_info"> <label class="btn btn-xs pull-right" ng-click="toggle_url_info(vars.selectedApp)" ><i class="glyphicon glyphicon-remove pull-right" style="color:grey" ></i></label> You can specify pages that you would not like to be cached.<br> <br> Enter parts of URLs that you would not like to be cached under "Do Not Cache URLS" </alert> <alert type="info" ng-show="vars.selectedApp.swiftcache.turbocache.cookie_info"> <label class="btn btn-xs pull-right" ng-click="toggle_cookie_info(vars.selectedApp)" ><i class="glyphicon glyphicon-remove pull-right" style="color:grey" ></i></label> Enter parts of Cookies that you would not like to be cached under "Do Not Cache Cookies" <br><br> The server will not cache urls and cookies in which any part of the text entered below is found. </alert> <div class="pull-left" style="margin-right:10px"> <div> Do Not Cache URLS: <i class="info glyphicon glyphicon-info-sign" style="cursor:pointer" ng-click="toggle_url_info(vars.selectedApp)" ></i> </div> <div class="input-group" style="width:212px;"> <input type="string" focus-me="vars.selectedApp.swiftcache.turbocache.focus_on_new_url" tooltip="Pages that contain these text strings anywhere in the URL will never be cached." tooltip-trigger="focus" class="form-control" ng-model="vars.selectedApp.swiftcache.turbocache.new_rejected_url" > <span class="input-group-btn"> <button class="btn btn-default" ng-click="add_rejected_url(vars.selectedApp)" >Add</button> </span> </div> <div class="well" style="width:212px;padding:5px"> <span ng-repeat="reject in vars.selectedApp.swiftcache.turbocache.reject_urls track by $index"><label class="btn btn-xs" ng-click="remove_url(vars.selectedApp,$index)" ><i class="glyphicon glyphicon-remove pull-right" style="color:grey" ></i></label>{{reject}}<br></span> </div> </div> <div class="pull-left" > <div> Do Not Cache Cookies: <i class="info glyphicon glyphicon-info-sign" style="cursor:pointer" ng-click="toggle_cookie_info(vars.selectedApp)" ></i> </div> <div> <div class="input-group" style="width:212px;"> <input type="string" focus-me="vars.selectedApp.focus_on_new_cookie" tooltip="Pages requested with cookies that contain these text strings anywhere in their name will never be cached." tooltip-trigger="focus" class="form-control pull-left" ng-model="vars.selectedApp.swiftcache.turbocache.new_rejected_cookie" > <span class="input-group-btn"> <button class="btn btn-default" ng-click="add_rejected_cookie(vars.selectedApp)" >Add</button> </span> </div> </div> <div class="well" style="width:212px;padding:5px"> <span ng-repeat="reject in vars.selectedApp.swiftcache.turbocache.reject_cookies track by $index"><label class="btn btn-xs" ng-click="remove_cookie(vars.selectedApp,$index)" ><i class="glyphicon glyphicon-remove pull-right" style="color:grey" ></i></label>{{reject}}<br></span> </div> </div> <div class="pull-right" style="margin:5px;clear:left" > <button class="btn btn-success btn-sm" ng-click="save(vars.selectedApp)">Save Settings</button> </div> <div class="pull-right" style="margin:5px;clear:left" > <button class="btn btn-warning btn-sm" ng-click="reset(vars.selectedApp)">Reset to Defaults</button> </div> <div class="pull-right" style="margin:5px;clear:left" > <button class="btn btn-info btn-sm" ng-click="purge(vars.selectedApp)" >Clear Cache</button> </div> </div> <div style="clear:both"></div> </div> </div> </div>Save