\Fuman_System_CleanUp

Cleans the system from old logs, cache and temp files.

Summary

Methods
Properties
Constants
runJob()
cleanLogs()
cleanTemp()
cleanCache()
cleanRuntimeCache()
No public properties found
CLEAN_UP_TIMEOUT
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

CLEAN_UP_TIMEOUT

CLEAN_UP_TIMEOUT

CleanUp cron job (5 minutes, deletes temporary files)

Methods

runJob()

runJob(\stdClass  $sessionData) : integer

Runs cron job

Cleanup log, temp and runtime cache

Parameters

\stdClass $sessionData

Returns

integer

cleanLogs()

cleanLogs(string|null  $dir = null, boolean  $ignoreTimestamp = false) : void

Deletes log files

Parameters

string|null $dir
boolean $ignoreTimestamp

cleanTemp()

cleanTemp(string|null  $dir = null, boolean  $ignoreTimestamp = false) : void

Deletes temp files (last mod -1 hour)

Parameters

string|null $dir
boolean $ignoreTimestamp

cleanCache()

cleanCache(string|null  $dir = null, boolean  $ignoreTimestamp = false) : void

Deletes cache files (last mod -1 hour)

Parameters

string|null $dir
boolean $ignoreTimestamp

cleanRuntimeCache()

cleanRuntimeCache(string|null  $dir = null, boolean  $ignoreTimestamp = false) : void

Deletes cache files (last mod -1 hour)

Parameters

string|null $dir
boolean $ignoreTimestamp