Browse Source

Extend recycle bin delete time
延长回收站删除时间

star7th 5 years ago
parent
commit
12b087f37c

+ 1 - 1
server/Application/Api/Controller/ScriptCronController.class.php

@@ -36,7 +36,7 @@ class ScriptCronController extends BaseController {
             }
         }
 
-        $pages = D("Recycle")->where(" del_time < ".(time() - 3*24*60*60))->select();
+        $pages = D("Recycle")->where(" del_time < ".(time() - 30*24*60*60))->select();
         if ($pages) {
             foreach ($pages as $key => $value) {
                 $ret = D("Page")->deletePage($value['page_id']);

+ 1 - 1
web/static/lang/en.js

@@ -294,7 +294,7 @@ exports.default = {
     "jump_to_item":"choose item",
 
     "recycle":"recycle",
-    "recycle_tips":"The deleted page will go to the recycle bin. The content in the recycle bin for more than 3 days will be automatically selected by the system and cleaned up when appropriate",
+    "recycle_tips":"The deleted page will go to the recycle bin. The content in the recycle bin for more than 30 days will be automatically selected by the system and cleaned up when appropriate",
     "page_title":"Page title",
     "deleter":"Delete Account",
     "del_time":"Delete time",

+ 1 - 1
web/static/lang/zh-CN.js

@@ -301,7 +301,7 @@ exports.default = {
     "jump_to_item":"跳转到项目",
 
     "recycle":"回收站",
-    "recycle_tips":"被删除的页面会进入回收站。在回收站超过3天的内容将被系统自动选择合适时候清理掉",
+    "recycle_tips":"被删除的页面会进入回收站。在回收站超过30天的内容将被系统自动选择合适时候清理掉",
     "page_title":"页面标题",
     "deleter":"删除账号",
     "del_time":"删除时间",

+ 1 - 1
web_src/static/lang/en.js

@@ -294,7 +294,7 @@ exports.default = {
     "jump_to_item":"choose item",
 
     "recycle":"recycle",
-    "recycle_tips":"The deleted page will go to the recycle bin. The content in the recycle bin for more than 3 days will be automatically selected by the system and cleaned up when appropriate",
+    "recycle_tips":"The deleted page will go to the recycle bin. The content in the recycle bin for more than 30 days will be automatically selected by the system and cleaned up when appropriate",
     "page_title":"Page title",
     "deleter":"Delete Account",
     "del_time":"Delete time",

+ 1 - 1
web_src/static/lang/zh-CN.js

@@ -301,7 +301,7 @@ exports.default = {
     "jump_to_item":"跳转到项目",
 
     "recycle":"回收站",
-    "recycle_tips":"被删除的页面会进入回收站。在回收站超过3天的内容将被系统自动选择合适时候清理掉",
+    "recycle_tips":"被删除的页面会进入回收站。在回收站超过30天的内容将被系统自动选择合适时候清理掉",
     "page_title":"页面标题",
     "deleter":"删除账号",
     "del_time":"删除时间",