Files

19 lines
433 B
PHP
Raw Permalink Normal View History

<?php
2023-08-08 00:04:14 +02:00
class Smarty_CacheResource_Filetest extends \Smarty\Cacheresource\File
{
public $lockTime = 0;
2023-08-08 00:04:14 +02:00
public function hasLock(\Smarty\Smarty $smarty, \Smarty\Template\Cached $cached)
{
if ($this->lockTime) {
$this->lockTime--;
if (!$this->lockTime) {
$this->releaseLock($smarty, $cached);
}
}
return parent::hasLock($smarty, $cached);
}
}