Bearsampp 2026.9.23
Loading...
Searching...
No Matches
ajax.clearcache.php File Reference

Go to the source code of this file.

Variables

 $response = []
 $stats = Root::getCacheStats()
 catch (Exception $e)
 exit
 try

Variable Documentation

◆ $response

$response = []

Definition at line 19 of file ajax.clearcache.php.

◆ $stats

$stats = Root::getCacheStats()

Definition at line 33 of file ajax.clearcache.php.

◆ catch

catch ( Exception $e)
Initial value:
{
$mailpitPort = $bearsamppBins->getMailpit()->getSmtpPort()
global $bearsamppBins

Definition at line 46 of file ajax.clearcache.php.

◆ exit

exit

Definition at line 55 of file ajax.clearcache.php.

◆ try

try
Initial value:
{
Log::error('Cache clear attempted while caching is disabled');
'success' => false,
'error' => 'Caching is disabled.',
];
echo json_encode($response);
}
static error($data, $file=null)

Definition at line 21 of file ajax.clearcache.php.

21 {
23 Log::error('Cache clear attempted while caching is disabled');
24 $response = [
25 'success' => false,
26 'error' => 'Caching is disabled.',
27 ];
28 echo json_encode($response);
29 exit;
30 }