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
boolclear()
public
clear() : Result
Return values
ResultgetClearAttemptNumber()
public
getClearAttemptNumber() : int
Return values
intgetInstance()
public
static getInstance() : self
Return values
selfgetLastClearTimestamp()
public
getLastClearTimestamp() : int
Return values
intgetNextClearTimeout()
Returns time interval in seconds to next activating clear cache button.
public
getNextClearTimeout() : int
If negative - timeout is gone.
Return values
intonAfterClear()
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