Optimize Database after Deleting Revisions - Version 5.0.10

Version Description

[10/26/2021] = * BUG FIX: set_time_limit fixed

Download this release

Release Info

Developer cageehv
Plugin Icon 128x128 Optimize Database after Deleting Revisions
Version 5.0.10
Comparing to
See all releases

Code changes from version 5.0.9 to 5.0.10

classes/odb-cleaner.php CHANGED
@@ -967,7 +967,7 @@ function odb_confirm_delete() {
967
  } // if($odb_class->odb_logger_obj->odb_log_count() > 0)
968
  ?>
969
  </div><!-- /odb-done -->
970
- <?php
971
  } // odb_done()
972
 
973
 
967
  } // if($odb_class->odb_logger_obj->odb_log_count() > 0)
968
  ?>
969
  </div><!-- /odb-done -->
970
+ <?php
971
  } // odb_done()
972
 
973
 
readme.txt CHANGED
@@ -9,9 +9,9 @@ Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
9
  Contributors: cageehv
10
  Requires at least: 2.8
11
  Requires PHP: 5.0
12
- Tested up to: 5.8
13
- Stable tag: 5.0.9
14
- Version: 5.0.9
15
  License: GPLv2 or later
16
 
17
  == Description ==
@@ -111,6 +111,9 @@ http://cagewebdev.com/category/news-tech-art/wordpress/
111
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
112
 
113
  == Changelog ==
 
 
 
114
  = 5.0.9 [08/04/2021] =
115
  * BUG FIX: Syntax error corrected
116
 
9
  Contributors: cageehv
10
  Requires at least: 2.8
11
  Requires PHP: 5.0
12
+ Tested up to: 6.0
13
+ Stable tag: 5.0.10
14
+ Version: 5.0.10
15
  License: GPLv2 or later
16
 
17
  == Description ==
111
  * If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
112
 
113
  == Changelog ==
114
+ = 5.0.10 [10/26/2021] =
115
+ * BUG FIX: set_time_limit fixed
116
+
117
  = 5.0.9 [08/04/2021] =
118
  * BUG FIX: Syntax error corrected
119
 
rvg-optimize-database.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
- * @version 5.0.9
5
  */
6
  /*
7
  Plugin Name: Optimize Database after Deleting Revisions
@@ -10,7 +10,7 @@ Description: Optimizes the Wordpress Database after Cleaning it out
10
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
11
  Author URI: http://cagewebdev.com
12
  Network: True
13
- Version: 5.0.9
14
  */
15
 
16
  /********************************************************************************************
@@ -19,17 +19,29 @@ Version: 5.0.9
19
  *
20
  ********************************************************************************************/
21
 
22
- // INCREASE THE TIME LIMIT v4.7.4
23
- @set_time_limit(4*3600);
24
-
 
 
 
 
 
 
 
 
 
 
 
 
25
  // CREATE INSTANCE
26
  global $odb_class;
27
  $odb_class = new OptimizeDatabase();
28
 
29
  class OptimizeDatabase {
30
  // VERSION
31
- var $odb_version = '5.0.9';
32
- var $odb_release_date = '08/04/2021';
33
 
34
  // PLUGIN OPTIONS
35
  var $odb_rvg_options = array();
1
  <?php
2
  /**
3
  * @package Optimize Database after Deleting Revisions
4
+ * @version 5.0.10
5
  */
6
  /*
7
  Plugin Name: Optimize Database after Deleting Revisions
10
  Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
11
  Author URI: http://cagewebdev.com
12
  Network: True
13
+ Version: 5.0.110
14
  */
15
 
16
  /********************************************************************************************
19
  *
20
  ********************************************************************************************/
21
 
22
+ //v5.0.10
23
+ $action = '';
24
+ if(isset($_REQUEST['action'])) {
25
+ $action = $_REQUEST['action'];
26
+ }
27
+ if ($action == 'analyze_summary' ||
28
+ $action == 'analyze_detail' ||
29
+ $action == 'run_summary' ||
30
+ $action == 'run_detail') {
31
+ @set_time_limit(4*3600);
32
+ } else {
33
+ // GET DEFAULT VALUE FROM PHP.INI
34
+ $max = ini_get('max_execution_time');
35
+ @set_time_limit($max);
36
+ }
37
  // CREATE INSTANCE
38
  global $odb_class;
39
  $odb_class = new OptimizeDatabase();
40
 
41
  class OptimizeDatabase {
42
  // VERSION
43
+ var $odb_version = '5.0.10';
44
+ var $odb_release_date = '10/26/2021';
45
 
46
  // PLUGIN OPTIONS
47
  var $odb_rvg_options = array();