Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Drew Clardy
ISPConfig 3
Commits
45841f08
Commit
45841f08
authored
14 years ago
by
vogelor
Browse files
Options
Downloads
Patches
Plain Diff
Added cleanup of the new sys_remoteaction - Table to the cron_daily.php
parent
0061e0bc
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/cron_daily.php
+7
-1
7 additions, 1 deletion
server/cron_daily.php
with
7 additions
and
1 deletion
server/cron_daily.php
+
7
−
1
View file @
45841f08
...
...
@@ -221,7 +221,13 @@ if ($app->dbmaster == $app->db) {
* if they are NOT ok, the server will try to process them in 1 minute and so the
* error appears again after 1 minute. So it is no problem to delete the old one!
*/
$sql
=
"DELETE FROM sys_log WHERE tstamp <
$tstamp
AND server_id != 0"
;
$sql
=
"DELETE FROM sys_log WHERE tstamp < "
.
$tstamp
.
" AND server_id != 0"
;
$app
->
dbmaster
->
query
(
$sql
);
/*
* Delete all remote-actions "done" and older than 7 days
*/
$sql
=
"DELETE FROM sys_remoteaction WHERE tstamp < "
.
$tstamp
.
" AND action_status = 'ok'"
;
$app
->
dbmaster
->
query
(
$sql
);
/*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment