ClearStatCache
class ClearStatCache
Methods
static void
clear(string|null $filename = null)
Clear the filesystem stat cache if the interval has elapsed.
static void
forceClear(string|null $filename = null)
Force clear the filesystem stat cache regardless of interval.
static int
getInterval()
Get the clear interval in seconds.
static void
setInterval(int $interval)
Set the clear interval in seconds.
static void
flushState()
Flush all static state.
Details
at line 26
static void
clear(string|null $filename = null)
Clear the filesystem stat cache if the interval has elapsed.
at line 41
static void
forceClear(string|null $filename = null)
Force clear the filesystem stat cache regardless of interval.
at line 53
static int
getInterval()
Get the clear interval in seconds.
at line 64
static void
setInterval(int $interval)
Set the clear interval in seconds.
The interval persists in a static property for the worker lifetime and affects every subsequent stat-cache clear check.
at line 73
static void
flushState()
Flush all static state.