Nice
-
Nice Plugin, have this Plugin a Cache Time for the Counter?
-
This topic was modified 9 years, 6 months ago by
derdrummer.
-
This topic was modified 9 years, 6 months ago by
-
@derdrummer all results are salved in cache/transients, as described in the description https://wordpress.org/plugins/social-count-plus/
The results of the counters are cached and new values are checked only once a day. This cache can be wiped when published a new post.
The cache avoids not only that your blog be seeking new results every time a page is loaded, but also prevents collapse of services from Twitter and Facebook, if one of these services does not respond, the counter displays the last count it was successful
And you can control it, as described in the plugin’s FAQ: https://wordpress.org/plugins/social-count-plus/faq/
How to changing the amount of times the counter is updated daily?
You can change using the filter social_count_plus_transient_time.
Example:function social_count_plus_custom_transient_time( $time ) { return 43200; // 12 hours in seconds. } add_filter( 'social_count_plus_transient_time', 'social_count_plus_custom_transient_time' );-
This reply was modified 9 years, 6 months ago by
Claudio Sanches.
Ah ok! Thanks, for me is the Instagram Counter important! And in which file should I write that for Instagram Counter?
@derdrummer for me is important too, and if you are removing 1 star because of it, for sure will make me really sad, since Instagram stopped work since they changed the API and I’m not able to make it work again, I already submitted my app approved by Instagram 23 times and all times denied. I’m trying my best here and I hope you support it.
I give you Five Stars 🙂 because its a good Support!! Yeah i know, sometimes other Services are dont give the space, thats sad!
But where can i put this Code?
function social_count_plus_custom_transient_time( $time ) { return 43200; // 12 hours in seconds. } add_filter( 'social_count_plus_transient_time', 'social_count_plus_custom_transient_time' );@derdrummer yep, but please if you need help, you can always use the support forum: https://wordpress.org/support/plugin/social-count-plus
But where can i put this Code?
You can simple put inside your theme’s
functions.php, works just fine, you create a plugin with it.Ah yes sorry 🙂 i check the Support Forum! All the best!
-
This reply was modified 9 years, 6 months ago by
The topic ‘Nice’ is closed to new replies.