PageCache except check

This commit is contained in:
2016-10-15 11:28:55 +08:00
parent 96c9d608c2
commit 16618e5165
3 changed files with 30 additions and 6 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ class WebFrame
this.HTTP = Http;
this.result = 0;
this.planted = false;
this.allowCache = true;
this.requestStr = "";
this.requestObj = {};
@@ -138,7 +139,7 @@ class WebFrame
__storeCache( cache, ttl )
{
if( cache && PageCache )
if( this.allowCache && cache && PageCache )
{
if( ttl == undefined ) ttl = 30;
PageCache.store(