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 24
static void clear(string|null $filename = null)

Clear the filesystem stat cache if the interval has elapsed.

Parameters

string|null $filename

Return Value

void

at line 39
static void forceClear(string|null $filename = null)

Force clear the filesystem stat cache regardless of interval.

Parameters

string|null $filename

Return Value

void

at line 51
static int getInterval()

Get the clear interval in seconds.

Return Value

int

at line 62
static void setInterval(int $interval)

Set the clear interval in seconds.

Boot-only. The interval persists in a static property for the worker lifetime and affects every subsequent stat-cache clear check.

Parameters

int $interval

Return Value

void

at line 70
static void flushState()

Flush all static state.

Return Value

void