Bearsampp
2026.9.23
Toggle main menu visibility
Loading...
Searching...
No Matches
class.action.clearFolders.php
Go to the documentation of this file.
1
<?php
2
/*
3
*
4
* * Copyright (c) 2022-2025 Bearsampp
5
* * License: GNU General Public License version 3 or later; see LICENSE.txt
6
* * Website: https://bearsampp.com
7
* * Github: https://github.com/Bearsampp
8
*
9
*/
10
18
class
ActionClearFolders
19
{
28
public
function
__construct
($args)
29
{
30
global
$bearsamppRoot
,
$bearsamppCore
;
31
42
Util::clearFolder
(
Path::getTmpPath
(), array(
'cachegrind'
,
'composer'
,
'openssl'
,
'mailpit'
,
'xlight'
,
'npm-cache'
,
'pip'
,
'opcache'
,
'.gitignore'
));
43
44
// Clear logs
45
Util::clearFolder
(
46
Path::getLogsPath
(),
47
array(
48
'mariadb.log'
,
49
'mailpit.err.log'
,
50
'mailpit.out.log'
,
51
'memcached.err.log'
,
52
'memcached.out.log'
,
53
'mysql.log'
,
54
'postgresql.log'
,
55
'xlight.error.log'
,
56
'xlight.log'
,
57
'.gitignore'
58
)
59
);
60
71
Util::clearFolder
(
Path::getTmpPath
(), array(
'.gitignore'
));
72
73
// Clear configuration caches (disk .cache files + in-memory module/config caches)
74
Root::clearCaches
();
75
}
76
}
77
$bearsamppRoot
global $bearsamppRoot
Definition
ajax.apache.php:16
$bearsamppCore
global $bearsamppCore
Definition
ajax.latestversion.php:24
ActionClearFolders
Definition
class.action.clearFolders.php:19
ActionClearFolders\__construct
__construct($args)
Definition
class.action.clearFolders.php:28
Path\getLogsPath
static getLogsPath($aetrayPath=false)
Definition
class.path.php:667
Path\getTmpPath
static getTmpPath($aetrayPath=false)
Definition
class.path.php:1110
Root\clearCaches
static clearCaches()
Definition
class.root.php:172
Util\clearFolder
static clearFolder($path, $exclude=array())
Definition
class.util.php:63
sandbox
core
classes
actions
class.action.clearFolders.php
Generated by
1.17.0