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.

Parameters

string|null $filename

Return Value

void

at line 41
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 53
static int getInterval()

Get the clear interval in seconds.

Return Value

int

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.

Parameters

int $interval

Return Value

void

at line 73
static void flushState()

Flush all static state.

Return Value

void