Bitrix API

CacheManager

FinalYes

Table of Contents

Constants

OPTION_ATTEMPT_NUMBER  = 'superset_clear_cache_attempt_number'
OPTION_LAST_CLEAR_TIME  = 'superset_last_clear_cache_time'

Methods

canClearCache()  : bool
clear()  : Result
getClearAttemptNumber()  : int
getInstance()  : self
getLastClearTimestamp()  : int
getNextClearTimeout()  : int
Returns time interval in seconds to next activating clear cache button.
onAfterClear()  : void
Sets number of attempt and timestamp of last cache clearing.
setClearAttemptNumber()  : void
setLastClearTimestamp()  : void

Constants

OPTION_ATTEMPT_NUMBER

public mixed OPTION_ATTEMPT_NUMBER = 'superset_clear_cache_attempt_number'

OPTION_LAST_CLEAR_TIME

public mixed OPTION_LAST_CLEAR_TIME = 'superset_last_clear_cache_time'

Methods

canClearCache()

public canClearCache() : bool
Return values
bool

getClearAttemptNumber()

public getClearAttemptNumber() : int
Return values
int

getInstance()

public static getInstance() : self
Return values
self

getLastClearTimestamp()

public getLastClearTimestamp() : int
Return values
int

getNextClearTimeout()

Returns time interval in seconds to next activating clear cache button.

public getNextClearTimeout() : int

If negative - timeout is gone.

Return values
int

onAfterClear()

Sets number of attempt and timestamp of last cache clearing.

public onAfterClear() : void

setClearAttemptNumber()

public setClearAttemptNumber(int $attempt) : void
Parameters
$attempt : int

setLastClearTimestamp()

public setLastClearTimestamp([int|null $timestamp = null ]) : void
Parameters
$timestamp : int|null = null

        
On this page

Search results