fixed #141 by setting default blnStartCaching to true and set to false when Portal is Secure, Folder is Secure, Caching is deactivated or Template is expired