fetch('downloadTime'.$_SESSION['shop_id'],$downloadTime); if ($downloadTime) { $result = $downloadTime > (time()-self::EXPIRED_TIME) ? false : true; return $result; } else { return true; } } }