mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-11 14:32:14 +09:00
관리자 페이지에서 알림삭제시 캐시데이터가 남아있는 문제 고침
This commit is contained in:
parent
abe4f87b0c
commit
300fe98e67
1 changed files with 17 additions and 4 deletions
|
|
@ -165,11 +165,15 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$this->setMessage('ncenterlite_message_delete_notification_all');
|
||||
}
|
||||
|
||||
if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON')))
|
||||
$this->removeAllFlagFile();
|
||||
|
||||
if(Context::get('success_return_url'))
|
||||
{
|
||||
$returnUrl = Context::get('success_return_url') ? Context::get('success_return_url') : getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminList');
|
||||
header('location: ' .$returnUrl);
|
||||
return;
|
||||
$this->setRedirectUrl(Context::get('success_return_url'));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminList'));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -200,4 +204,13 @@ class ncenterliteAdminController extends ncenterlite
|
|||
$this->setRedirectUrl(getNotEncodedUrl('', 'module', 'admin', 'act', 'dispNcenterliteAdminCustomList'));
|
||||
}
|
||||
}
|
||||
|
||||
function removeAllFlagFile()
|
||||
{
|
||||
$flag_path = \RX_BASEDIR . 'files/cache/ncenterlite/new_notify/';
|
||||
if(FileHandler::isDir($flag_path))
|
||||
{
|
||||
FileHandler::removeFilesInDir($flag_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue