mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 15:02:15 +09:00
Move server environment related actions to ServerEnv class
This commit is contained in:
parent
c93dea90e0
commit
5d6a16cdf9
4 changed files with 291 additions and 278 deletions
|
|
@ -160,36 +160,6 @@ class AdminAdminController extends Admin
|
|||
|
||||
$this->setMessage('success_updated');
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear APCU cache
|
||||
*/
|
||||
public function procAdminClearApcu()
|
||||
{
|
||||
if (function_exists('apcu_clear_cache') && apcu_clear_cache())
|
||||
{
|
||||
return new BaseObject(0, 'success_updated');
|
||||
}
|
||||
else
|
||||
{
|
||||
return new BaseObject(-1, 'apcu_clear_cache_function_not_found');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear opcache
|
||||
*/
|
||||
public function procAdminClearOpcache()
|
||||
{
|
||||
if (function_exists('opcache_reset') && opcache_reset())
|
||||
{
|
||||
return new BaseObject(0, 'success_updated');
|
||||
}
|
||||
else
|
||||
{
|
||||
return new BaseObject(-1, 'opcache_reset_function_not_found');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Logout
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue