20 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
23 if(isset($this->cache[
$entity]) && is_object($this->cache[
$entity]))
24 $this->cache[
$entity]->SetLength($length);
26 $this->cacheLen[
$entity] = $length;
31 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
34 if(isset($this->cache[
$entity]) && is_object($this->cache[
$entity]))
35 $this->cache[
$entity]->SetTTL($ttl);
37 $this->cacheTTL[
$entity] = $ttl;
42 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
45 if (!$this->eventHandlerAdded)
48 $this->eventHandlerAdded =
true;
51 if($length <= 0 && isset($this->cacheLen[
$entity]))
52 $length = $this->cacheLen[
$entity];
54 if($ttl <= 0 && isset($this->cacheTTL[
$entity]))
55 $ttl = $this->cacheTTL[
$entity];
57 if (!array_key_exists(
$entity, $this->cache))
63 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
66 if (!array_key_exists(
$entity, $this->cache))
75 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
78 if (!array_key_exists(
$entity, $this->cache))
82 $this->cache[
$entity]->DeleteEntry($id);
90 $this->cache =
array();
92 $objCache =
new CPHPCache;
93 $objCache->CleanDir(
false,
"stack_cache");
99 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
102 if (!array_key_exists(
$entity, $this->cache))
105 return array_key_exists($id, $this->cache[
$entity]->values);
111 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
114 if (!array_key_exists(
$entity, $this->cache))
117 return $this->cache[
$entity]->Get($id);
123 if (defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
126 if (!array_key_exists(
$entity, $this->cache))
129 $this->cache[
$entity]->Set($id, $value);
134 if(defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
137 if(array_key_exists(
$entity, $this->cache))
143 if(defined(
"BITRIX_SKIP_STACK_CACHE") && BITRIX_SKIP_STACK_CACHE)
147 global $stackCacheManager;
149 foreach($stackCacheManager->cache as $value)
162 $id .=
"_".$values[
$i];
Clear($entity, $id=false)
Set($entity, $id, $value)
Init($entity, $length=0, $ttl=0)
SetLength($entity, $length)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
AddEventHandler($FROM_MODULE_ID, $MESSAGE_ID, $CALLBACK, $SORT=100, $FULL_PATH=false)
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"