mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
[Legacy] Add Clear Cache to Admin
This commit is contained in:
parent
395a6e8938
commit
2f708e7c6e
1 changed files with 6 additions and 0 deletions
|
@ -120,6 +120,7 @@ class RepairAndClear
|
|||
$this->rebuildExtensions();
|
||||
$this->rebuildAuditTables();
|
||||
$this->repairDatabase();
|
||||
$this->clearCoreCache();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -127,6 +128,11 @@ class RepairAndClear
|
|||
|
||||
/////////////OLD
|
||||
|
||||
public function clearCoreCache()
|
||||
{
|
||||
$coreCachePath = __DIR__ . '/../../../../cache/';
|
||||
rmdir_recursive($coreCachePath);
|
||||
}
|
||||
|
||||
public function repairDatabase()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue