diff --git a/common/lang/en.lang.php b/common/lang/en.lang.php
index 7b178db66..5cb06345c 100644
--- a/common/lang/en.lang.php
+++ b/common/lang/en.lang.php
@@ -50,6 +50,7 @@
$lang->cmd_scrap = 'Scrap';
$lang->cmd_preview = 'Preview';
$lang->cmd_reset = 'Reset';
+ $lang->cmd_remake_cache = "Re-create cache file";
$lang->enable = 'Enable';
$lang->disable = 'Disable';
diff --git a/common/lang/jp.lang.php b/common/lang/jp.lang.php
index fe355a52b..88206b692 100644
--- a/common/lang/jp.lang.php
+++ b/common/lang/jp.lang.php
@@ -50,6 +50,7 @@
$lang->cmd_scrap = 'スクラップ';
$lang->cmd_preview = 'プレビュー';
$lang->cmd_reset = '初期化';
+ $lang->cmd_remake_cache = "キャッシュファイル再生成";
$lang->enable = '可能';
$lang->disable = '不可';
diff --git a/common/lang/ko.lang.php b/common/lang/ko.lang.php
index 20bd33803..78473b3cf 100644
--- a/common/lang/ko.lang.php
+++ b/common/lang/ko.lang.php
@@ -50,6 +50,7 @@
$lang->cmd_scrap = '스크랩';
$lang->cmd_preview = '미리 보기';
$lang->cmd_reset = '초기화';
+ $lang->cmd_remake_cache = "캐시파일 재생성";
$lang->enable = '가능';
$lang->disable = '불가능';
diff --git a/common/lang/zh-CN.lang.php b/common/lang/zh-CN.lang.php
index ce8bfa7dc..4ed7bf3df 100644
--- a/common/lang/zh-CN.lang.php
+++ b/common/lang/zh-CN.lang.php
@@ -50,6 +50,7 @@
$lang->cmd_scrap = '收藏';
$lang->cmd_preview = '预览';
$lang->cmd_reset = '初始化';
+ $lang->cmd_remake_cache = "缓冲文件再生成";
$lang->enable = '可用';
$lang->disable = '禁用';
diff --git a/modules/menu/lang/en.lang.php b/modules/menu/lang/en.lang.php
index 0886c5c20..3de86df16 100644
--- a/modules/menu/lang/en.lang.php
+++ b/modules/menu/lang/en.lang.php
@@ -32,7 +32,6 @@
$lang->limit_menu_depth = 'Display enabled';
$lang->cmd_make_child = 'Add a child menu';
- $lang->cmd_remake_cache = "Re-create cache file";
$lang->cmd_move_to_installed_list = "View created lists";
$lang->cmd_enable_move_menu = "Move menu (Drag the top menu after selecting)";
$lang->cmd_search_mid = "Search mid";
diff --git a/modules/menu/lang/jp.lang.php b/modules/menu/lang/jp.lang.php
index 7ceb387d7..cb2e1be03 100644
--- a/modules/menu/lang/jp.lang.php
+++ b/modules/menu/lang/jp.lang.php
@@ -32,7 +32,6 @@
$lang->limit_menu_depth = '表示スレッド';
$lang->cmd_make_child = '下位メニュー追加';
- $lang->cmd_remake_cache = "キャッシュファイル再生成";
$lang->cmd_move_to_installed_list = "生成されたリスト表示";
$lang->cmd_enable_move_menu = "メニュー移動(選択後メニューをドラッグしてください)";
$lang->cmd_search_mid = "mid 検索";
diff --git a/modules/menu/lang/ko.lang.php b/modules/menu/lang/ko.lang.php
index 14897a308..66f52c674 100644
--- a/modules/menu/lang/ko.lang.php
+++ b/modules/menu/lang/ko.lang.php
@@ -32,7 +32,6 @@
$lang->limit_menu_depth = '표시 가능';
$lang->cmd_make_child = '하부 메뉴 추가';
- $lang->cmd_remake_cache = "캐시파일 재생성";
$lang->cmd_move_to_installed_list = "생성된 목록 보기";
$lang->cmd_enable_move_menu = "메뉴 옮기기 (선택후 위 메뉴를 드래그하세요)";
$lang->cmd_search_mid = "mid 찾기";
diff --git a/modules/menu/lang/zh-CN.lang.php b/modules/menu/lang/zh-CN.lang.php
index a982ce46a..5adcb3292 100644
--- a/modules/menu/lang/zh-CN.lang.php
+++ b/modules/menu/lang/zh-CN.lang.php
@@ -32,7 +32,6 @@
$lang->limit_menu_depth = '可显示';
$lang->cmd_make_child = '添加下级菜单';
- $lang->cmd_remake_cache = "缓冲文件再生成";
$lang->cmd_move_to_installed_list = "查看生成目录";
$lang->cmd_enable_move_menu = "移动菜单 (选择后用鼠标拖动)";
$lang->cmd_search_mid = "查找 mid";
@@ -49,4 +48,4 @@
$lang->about_menu_group_srls = '如选择用户组,只有所属组用户才能看到此菜单。 —(xml文件中不能隐藏)';
$lang->about_menu = "菜单模块可以通过菜单管理器整理已生成的模块并同布局相连接来轻松建设一个完整的网站。\n菜单模块虽然具有连接模块和布局并通过布局来显示多种形态菜单的信息,但它不具备管理网站的功能。";
-?>
\ No newline at end of file
+?>
diff --git a/modules/page/conf/module.xml b/modules/page/conf/module.xml
index 1bb5f6a6d..dd598d3d8 100644
--- a/modules/page/conf/module.xml
+++ b/modules/page/conf/module.xml
@@ -10,6 +10,7 @@
+
diff --git a/modules/page/page.admin.controller.php b/modules/page/page.admin.controller.php
index 627e3126f..036b1ff0c 100644
--- a/modules/page/page.admin.controller.php
+++ b/modules/page/page.admin.controller.php
@@ -117,6 +117,37 @@
$oFileController->printUploadedFileList($upload_target_srl);
}
+ /**
+ * @brief 지정된 페이지의 위젯 캐시 파일 지우기
+ **/
+ function procPageAdminRemoveWidgetCache() {
+ $module_srl = Context::get('module_srl');
+
+ $oModuleModel = &getModel('module');
+ $module_info = $oModuleModel->getModuleInfoByModuleSrl($module_srl);
+
+ $content = $module_info->content;
+
+ // 언어 종류 가져옴
+ $lang_list = Context::get('lang_supported');
+
+ // 위젯 캐시 sequence 를 가져옴
+ preg_match_all('/widget_sequence="([0-9]+)"/i',$content, $matches);
+
+ $cache_path = './files/cache/widget_cache/';
+
+ for($i=0;$isetMessage('success_updated');
+ }
}
?>
diff --git a/modules/page/tpl/content.html b/modules/page/tpl/content.html
index bcb3a7963..eb8667901 100644
--- a/modules/page/tpl/content.html
+++ b/modules/page/tpl/content.html
@@ -1,7 +1,9 @@
{$page_content}
+
diff --git a/modules/page/tpl/js/page_admin.js b/modules/page/tpl/js/page_admin.js
index e4e18a2da..895e4913e 100644
--- a/modules/page/tpl/js/page_admin.js
+++ b/modules/page/tpl/js/page_admin.js
@@ -70,3 +70,16 @@ function doChangeCategory(fo_obj) {
}
return true;
}
+
+/* 위젯 재컴파일 */
+function doRemoveWidgetCache(module_srl) {
+ var params = new Array();
+ params["module_srl"] = module_srl;
+ exec_xml('page', 'procPageAdminRemoveWidgetCache', params, completeRemoveWidgetCache);
+}
+
+function completeRemoveWidgetCache(ret_obj) {
+ var message = ret_obj['message'];
+ alert(message);
+ location.reload();
+}