Version Description
- Added cache cleanup support for WP Super Cache, Hyper Cache and Quick Cache plugin's
Download this release
Release Info
Developer | shareaholic |
Plugin | WordPress Social Tools, Related Posts, Monetization – Shareaholic |
Version | 7.4.0.5 |
Comparing to | |
See all releases |
Code changes from version 7.4.0.4 to 7.4.0.5
- readme.txt +8 -1
- shareaholic.php +3 -3
- utilities.php +14 -4
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
|
|
3 |
Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.9
|
6 |
-
Stable tag: 7.4.0.
|
7 |
|
8 |
Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
|
9 |
|
@@ -155,6 +155,9 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
155 |
|
156 |
== Changelog ==
|
157 |
|
|
|
|
|
|
|
158 |
= 7.4.0.4 =
|
159 |
* Bugfix: Removed an unneeded conditional check from the server side Share Counts API to make it more reliable
|
160 |
* Clear W3 Total Cache for clean activation and deactivation
|
@@ -1054,6 +1057,10 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
|
|
1054 |
|
1055 |
== Upgrade Notice ==
|
1056 |
|
|
|
|
|
|
|
|
|
1057 |
= 7.4.0.4 =
|
1058 |
|
1059 |
Reliability improvements to the server side Share Counts API
|
3 |
Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, wanelo, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 3.9
|
6 |
+
Stable tag: 7.4.0.5
|
7 |
|
8 |
Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
|
9 |
|
155 |
|
156 |
== Changelog ==
|
157 |
|
158 |
+
= 7.4.0.5 =
|
159 |
+
* Added cache cleanup support for WP Super Cache, Hyper Cache and Quick Cache plugin's
|
160 |
+
|
161 |
= 7.4.0.4 =
|
162 |
* Bugfix: Removed an unneeded conditional check from the server side Share Counts API to make it more reliable
|
163 |
* Clear W3 Total Cache for clean activation and deactivation
|
1057 |
|
1058 |
== Upgrade Notice ==
|
1059 |
|
1060 |
+
= 7.4.0.5 =
|
1061 |
+
|
1062 |
+
Added cache cleanup support for WP Super Cache, Hyper Cache and Quick Cache plugin's
|
1063 |
+
|
1064 |
= 7.4.0.4 =
|
1065 |
|
1066 |
Reliability improvements to the server side Share Counts API
|
shareaholic.php
CHANGED
@@ -3,14 +3,14 @@
|
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
-
* @version 7.4.0.
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
|
13 |
-
Version: 7.4.0.
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
@@ -61,7 +61,7 @@ class Shareaholic {
|
|
61 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
62 |
const REC_API_URL = 'http://recommendations.shareaholic.com';
|
63 |
|
64 |
-
const VERSION = '7.4.0.
|
65 |
|
66 |
/**
|
67 |
* Starts off as false so that ::get_instance() returns
|
3 |
* The main file!
|
4 |
*
|
5 |
* @package shareaholic
|
6 |
+
* @version 7.4.0.5
|
7 |
*/
|
8 |
|
9 |
/*
|
10 |
Plugin Name: Shareaholic | share buttons, analytics, related content
|
11 |
Plugin URI: https://shareaholic.com/publishers/
|
12 |
Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
|
13 |
+
Version: 7.4.0.5
|
14 |
Author: Shareaholic
|
15 |
Author URI: https://shareaholic.com
|
16 |
Text Domain: shareaholic
|
61 |
const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
|
62 |
const REC_API_URL = 'http://recommendations.shareaholic.com';
|
63 |
|
64 |
+
const VERSION = '7.4.0.5';
|
65 |
|
66 |
/**
|
67 |
* Starts off as false so that ::get_instance() returns
|
utilities.php
CHANGED
@@ -968,16 +968,26 @@ class ShareaholicUtilities {
|
|
968 |
}
|
969 |
|
970 |
/*
|
971 |
-
*
|
972 |
*
|
973 |
*/
|
974 |
public static function clear_cache() {
|
975 |
// W3 Total Cache plugin
|
976 |
if (function_exists('w3tc_pgcache_flush')) {
|
977 |
-
w3tc_pgcache_flush();
|
978 |
}
|
979 |
-
|
980 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
981 |
}
|
982 |
|
983 |
/**
|
968 |
}
|
969 |
|
970 |
/*
|
971 |
+
* Clears cache created by caching plugins like W3 Total Cache
|
972 |
*
|
973 |
*/
|
974 |
public static function clear_cache() {
|
975 |
// W3 Total Cache plugin
|
976 |
if (function_exists('w3tc_pgcache_flush')) {
|
977 |
+
w3tc_pgcache_flush();
|
978 |
}
|
979 |
+
// WP Super Cache
|
980 |
+
if (function_exists('wp_cache_clear_cache')) {
|
981 |
+
wp_cache_clear_cache();
|
982 |
+
}
|
983 |
+
// Hyper Cache
|
984 |
+
if (function_exists('hyper_cache_invalidate')) {
|
985 |
+
hyper_cache_invalidate();
|
986 |
+
}
|
987 |
+
// Quick Cache
|
988 |
+
if (function_exists('auto_clear_cache')) {
|
989 |
+
auto_clear_cache();
|
990 |
+
}
|
991 |
}
|
992 |
|
993 |
/**
|