mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 05:26:19 +00:00
Last Phase before v11 release. New Automation Cleanup
Last Phase before v11 release. New Automation Cleanup
This commit is contained in:
@@ -42,6 +42,18 @@ define('CRON_TICK_SECONDS', %CRONTICK%);
|
||||
// Generata automat la instalare; pastrata la salvarile de configuratie din ACP.
|
||||
define('CRON_KEY', '%CRONKEY%');
|
||||
|
||||
//////////////////////////////////
|
||||
// ***** DATABASE CLEANUP *****//
|
||||
//////////////////////////////////
|
||||
// Tabelele care cresc nelimitat (rapoarte, chat, mesaje sterse) sunt curatate
|
||||
// periodic de Automation. 0 = dezactivat pentru fiecare regula in parte.
|
||||
// Rapoartele ARHIVATE de jucator nu se sterg niciodata.
|
||||
define('CLEANUP_REPORTS_DAYS', %CLEANUPREPORTS%);
|
||||
define('CLEANUP_CHAT_DAYS', %CLEANUPCHAT%);
|
||||
define('CLEANUP_MESSAGES_DAYS', %CLEANUPMESSAGES%);
|
||||
define('CLEANUP_INTERVAL', 3600);
|
||||
define('CLEANUP_BATCH', 5000);
|
||||
|
||||
//////////////////////////////////
|
||||
// ***** SERVER SETTINGS *****//
|
||||
//////////////////////////////////
|
||||
|
||||
@@ -114,6 +114,11 @@ class Process {
|
||||
// din ACP (Config -> Cron & Automation -> edit).
|
||||
$findReplace["%CRONLOOP%"] = 300;
|
||||
$findReplace["%CRONTICK%"] = 60;
|
||||
// Retentii implicite pentru curatenia periodica din Automation
|
||||
// (0 = regula dezactivata).
|
||||
$findReplace["%CLEANUPREPORTS%"] = 14;
|
||||
$findReplace["%CLEANUPCHAT%"] = 7;
|
||||
$findReplace["%CLEANUPMESSAGES%"] = 0;
|
||||
$findReplace["%DOMAIN%"] = $_POST['domain'];
|
||||
$findReplace["%HOMEPAGE%"] = $_POST['homepage'];
|
||||
$findReplace["%SERVER%"] = $_POST['server'];
|
||||
|
||||
Reference in New Issue
Block a user