Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lolo888
ISPConfig 3
Commits
9db14549
Commit
9db14549
authored
May 01, 2010
by
vogelor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a error in cleaning the remote-actions - Table
parent
45841f08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
server/cron_daily.php
server/cron_daily.php
+10
-2
No files found.
server/cron_daily.php
View file @
9db14549
...
...
@@ -225,9 +225,17 @@ if ($app->dbmaster == $app->db) {
$app
->
dbmaster
->
query
(
$sql
);
/*
* Delete all remote-actions "done" and older than 7 days
* Delete all remote-actions "done" and older than 7 days
* ATTENTION: We have the same problem as described in cleaning the datalog. We must not
* delete the last entry
*/
$sql
=
"DELETE FROM sys_remoteaction WHERE tstamp < "
.
$tstamp
.
" AND action_status = 'ok'"
;
$sql
=
"SELECT max(action_id) FROM sys_remoteaction"
;
$res
=
$app
->
dbmaster
->
queryOneRecord
(
$sql
);
$maxId
=
$res
[
'max(action_id)'
];
$sql
=
"DELETE FROM sys_remoteaction "
.
"WHERE tstamp < "
.
$tstamp
.
" "
.
" AND action_status = 'ok' "
.
" AND action_id <"
.
intval
(
$maxId
);
$app
->
dbmaster
->
query
(
$sql
);
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment