mirror of
				https://github.com/smarty-php/smarty.git
				synced 2025-10-31 12:21:36 +01:00 
			
		
		
		
	
		
			
	
	
		
			19 lines
		
	
	
		
			432 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			19 lines
		
	
	
		
			432 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
|   | <?php | ||
|  | 
 | ||
|  | 
 | ||
|  | class Smarty_CacheResource_Filetest extends Smarty_Internal_CacheResource_File | ||
|  | { | ||
|  |     public $lockTime = 0; | ||
|  | 
 | ||
|  |     public function hasLock(Smarty $smarty, Smarty_Template_Cached $cached) | ||
|  |     { | ||
|  |         if ($this->lockTime) { | ||
|  |             $this->lockTime--; | ||
|  |             if (!$this->lockTime) { | ||
|  |                 $this->releaseLock($smarty, $cached); | ||
|  |             } | ||
|  |         } | ||
|  |         return parent::hasLock($smarty, $cached); | ||
|  |     } | ||
|  | } |