|  | @@ -87,7 +87,11 @@ module.exports = app => {
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  this.ctx.stage = stage;
 | 
	
		
			
				|  |  | -                this.ctx.stage.cacheTime = this.ctx.stage.readOnly ? (this.ctx.stage.cache_time_r).getTime(): (this.ctx.stage.cache_time_l).getTime();
 | 
	
		
			
				|  |  | +                let time = this.ctx.stage.readOnly ? this.ctx.stage.cache_time_r : this.ctx.stage.cache_time_l;
 | 
	
		
			
				|  |  | +                if (!time) {
 | 
	
		
			
				|  |  | +                    time = this.ctx.stage.in_time ? this.ctx.stage.in_time : new Date();
 | 
	
		
			
				|  |  | +                }
 | 
	
		
			
				|  |  | +                this.ctx.stage.cacheTime = time.getTime();//this.ctx.stage.readOnly ? (this.ctx.stage.cache_time_r).getTime(): (this.ctx.stage.cache_time_l).getTime();
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -186,11 +190,11 @@ module.exports = app => {
 | 
	
		
			
				|  |  |              await this._checkStage(sid);
 | 
	
		
			
				|  |  |              const cache = await this._getReportMemoryCache('mem_stage_im_tz', tid, sid, this.ctx.stage.cacheTime);
 | 
	
		
			
				|  |  |              if (cache) {
 | 
	
		
			
				|  |  | -                //console.log('cache');
 | 
	
		
			
				|  |  | +                console.log('cache');
 | 
	
		
			
				|  |  |                  return cache;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            //console.log('build');
 | 
	
		
			
				|  |  | +            console.log('build');
 | 
	
		
			
				|  |  |              if (!this.stageImData) {
 | 
	
		
			
				|  |  |                  this.stageImData = {};
 | 
	
		
			
				|  |  |                  try {
 |