Version Description
[09/14/2015] = * BUG FIX: Bug fixed for deleting transients
Download this release
Release Info
Developer | cageehv |
Plugin | Optimize Database after Deleting Revisions |
Version | 3.4.8 |
Comparing to | |
See all releases |
Code changes from version 3.4.7 to 3.4.8
- readme.txt +5 -2
- rvg-optimize-db.php +9 -9
readme.txt
CHANGED
@@ -8,8 +8,8 @@ Author URI: http://cagewebdev.com
|
|
8 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
9 |
Requires at least: 2.8
|
10 |
Tested up to: 4.3
|
11 |
-
Stable tag: 3.4.
|
12 |
-
Version: 3.4.
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
== Description ==
|
@@ -86,6 +86,9 @@ http://cagewebdev.com/index.php/wordpress-plugins/
|
|
86 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
87 |
|
88 |
== Changelog ==
|
|
|
|
|
|
|
89 |
= 3.4.7 [08/30/2015] =
|
90 |
* BUG FIX: Transients are now deleted using the delete_transient() / delete_site_transient() functions
|
91 |
|
8 |
Author: CAGE Web Design | Rolf van Gelder, Eindhoven, The Netherlands
|
9 |
Requires at least: 2.8
|
10 |
Tested up to: 4.3
|
11 |
+
Stable tag: 3.4.8
|
12 |
+
Version: 3.4.8
|
13 |
License: GPLv2 or later
|
14 |
|
15 |
== Description ==
|
86 |
* If you run the plugin from any of the sites, it will cleanup ALL the sites in the network!
|
87 |
|
88 |
== Changelog ==
|
89 |
+
= 3.4.8 [09/14/2015] =
|
90 |
+
* BUG FIX: Bug fixed for deleting transients
|
91 |
+
|
92 |
= 3.4.7 [08/30/2015] =
|
93 |
* BUG FIX: Transients are now deleted using the delete_transient() / delete_site_transient() functions
|
94 |
|
rvg-optimize-db.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
-
* @version 3.4.
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
@@ -9,11 +9,11 @@ Plugin URI: http://cagewebdev.com/index.php/optimize-database-after-deleting-rev
|
|
9 |
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 |
-
Version: 3.4.
|
13 |
*/
|
14 |
|
15 |
-
$odb_version = '3.4.
|
16 |
-
$odb_release_date = '
|
17 |
|
18 |
// v3.3 - MULTISITE
|
19 |
$odb_ms_prefixes = array();
|
@@ -1713,21 +1713,21 @@ function rvg_delete_transients()
|
|
1713 |
$total_deleted += count($results);
|
1714 |
|
1715 |
// LOOP THROUGH THE RESULTS
|
1716 |
-
for($
|
1717 |
{
|
1718 |
-
if(substr($results[$
|
1719 |
{ // _transient_timeout_%
|
1720 |
-
$transient = substr($results[$
|
1721 |
// DELETE THE TRANSIENT
|
1722 |
delete_transient($transient);
|
1723 |
}
|
1724 |
else
|
1725 |
{ // _site_transient_timeout_%
|
1726 |
-
$transient = substr($results[$
|
1727 |
// DELETE THE TRANSIENT
|
1728 |
delete_site_transient($transient);
|
1729 |
}
|
1730 |
-
} // for($
|
1731 |
|
1732 |
} // for($i=0; $i<count($odb_ms_prefixes); $i++)
|
1733 |
return $total_deleted;
|
1 |
<?php
|
2 |
/**
|
3 |
* @package Optimize Database after Deleting Revisions
|
4 |
+
* @version 3.4.8
|
5 |
*/
|
6 |
/*
|
7 |
Plugin Name: Optimize Database after Deleting Revisions
|
9 |
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 |
+
Version: 3.4.8
|
13 |
*/
|
14 |
|
15 |
+
$odb_version = '3.4.8';
|
16 |
+
$odb_release_date = '09/14/2015';
|
17 |
|
18 |
// v3.3 - MULTISITE
|
19 |
$odb_ms_prefixes = array();
|
1713 |
$total_deleted += count($results);
|
1714 |
|
1715 |
// LOOP THROUGH THE RESULTS
|
1716 |
+
for($j=0; $j<count($results); $j++)
|
1717 |
{
|
1718 |
+
if(substr($results[$j]->option_name, 0, 19) == '_transient_timeout_')
|
1719 |
{ // _transient_timeout_%
|
1720 |
+
$transient = substr($results[$j]->option_name, 19);
|
1721 |
// DELETE THE TRANSIENT
|
1722 |
delete_transient($transient);
|
1723 |
}
|
1724 |
else
|
1725 |
{ // _site_transient_timeout_%
|
1726 |
+
$transient = substr($results[$j]->option_name, 24);
|
1727 |
// DELETE THE TRANSIENT
|
1728 |
delete_site_transient($transient);
|
1729 |
}
|
1730 |
+
} // for($j=0; $j<count($results); $j++)
|
1731 |
|
1732 |
} // for($i=0; $i<count($odb_ms_prefixes); $i++)
|
1733 |
return $total_deleted;
|