PageCache except check
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var cl = global.botanLoader;
|
||||
var Dragonfly = global.Dragonfly;
|
||||
const cl = global.botanLoader;
|
||||
const Dragonfly = global.Dragonfly;
|
||||
|
||||
var Cookie = cl.load( "botanss.net.components.Cookie" );
|
||||
const Cookie = cl.load( "botanss.net.components.Cookie" );
|
||||
|
||||
class CResponse
|
||||
{
|
||||
@@ -22,7 +22,6 @@ class CResponse
|
||||
this.cookie = new Cookie( "", Http );
|
||||
}
|
||||
|
||||
|
||||
end()
|
||||
{
|
||||
if( this.canExit )
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user