mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
issue 2195 modified a function that re-created cache file.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11017 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2b6f473b26
commit
90d6dc7b32
2 changed files with 18 additions and 6 deletions
|
|
@ -234,12 +234,26 @@
|
|||
$module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl, $columnList);
|
||||
|
||||
$content = $module_info->content;
|
||||
|
||||
$cache_file = sprintf("%sfiles/cache/page/%d.%s.cache.php", _XE_PATH_, $module_info->module_srl, Context::getLangType());
|
||||
if(file_exists($cache_file)) FileHandler::removeFile($cache_file);
|
||||
// widget controller re-run of the cache files
|
||||
$oWidgetController = &getController('widget');
|
||||
$oWidgetController->recompileWidget($content);
|
||||
|
||||
if($module_info->page_type == 'WIDGET')
|
||||
{
|
||||
$cache_file = sprintf("%sfiles/cache/page/%d.%s.cache.php", _XE_PATH_, $module_info->module_srl, Context::getLangType());
|
||||
}
|
||||
else if($module_info->page_type == 'OUTSIDE')
|
||||
{
|
||||
$cache_file = sprintf("%sfiles/cache/opage/%d.cache.php", _XE_PATH_, $module_info->module_srl);
|
||||
|
||||
if($module_info->mpath)
|
||||
{
|
||||
$mcacheFile = sprintf("%sfiles/cache/opage/%d.m.cache.php", _XE_PATH_, $module_info->module_srl);
|
||||
if(file_exists($mcacheFile)) FileHandler::removeFile($mcacheFile);
|
||||
}
|
||||
|
||||
}
|
||||
if(file_exists($cache_file)) FileHandler::removeFile($cache_file);
|
||||
}
|
||||
|
||||
function procPageAdminArticleDocumentInsert()
|
||||
|
|
|
|||
|
|
@ -2,16 +2,14 @@
|
|||
<!--@if($grant->manager)-->
|
||||
<load target="./js/page_admin.js" usecdn="true" />
|
||||
<div class="btnArea">
|
||||
<!--@if($module_info->page_type == 'WIDGET')-->
|
||||
<span class="btn"><button type="button" onclick="doRemoveWidgetCache({$module_info->module_srl}); return false;">{$lang->cmd_remake_cache}</button></span>
|
||||
<!--@end-->
|
||||
<!--@if($logged_info->is_admin=='Y')-->
|
||||
<span class="btn"><a href="{getUrl('act','dispPageAdminInfo','module_srl',$module_info->module_srl)}">{$lang->cmd_setup}...</a></span>
|
||||
<!--@end-->
|
||||
<!--@if($module_info->page_type != 'OUTSIDE')-->
|
||||
<span class="btn"><a href="{getUrl('act','dispPageAdminContentModify','document_srl','')}">{$lang->cmd_page_modify}...</a></span>
|
||||
<!--@end-->
|
||||
<!--@if($module_info->use_mobile =="Y")-->
|
||||
<!--@if($module_info->use_mobile =="Y" && $module_info->page_type == 'WIDGET')-->
|
||||
<span class="btn"><a href="{getUrl('act','dispPageAdminMobileContent','module_srl',$module_info->module_srl)}">Mobile</a></span>
|
||||
<!--@end-->
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue