Documentation

ClearResultCache

bool
ClearResultCache(
 string additionalCacheID [,
 string cachePath]]
);

The method updates support of in-built component caching. Non-static method.

This method is used when in same cases the component cache must be flushed (for example, when data is modified).

Parameters

ParameterDescription
additionalCacheID Cache depends on the current site (SITE_ID), component name, file path and input parameters $arParams. If cache must depend on specific additional parameters, they must be passed here as a string. Default parameter value is False, i. e. cache depends only on the current site SITE_ID, component name, file path and input parameters. $arParams.
cachePath Cache file path relative to cache folder. By default equals to "/".SITE_ID.<component path relative to bitrix/components>.

See Also

  • CBitrixComponent::StartResultCache
  • CBitrixComponent::AbortResultCache


  • © «Bitrix24», 2001-2024
    Up