WPIntell

Source evidence

Synchronisation for old posts

Post Share Count · support · 2014-08-20T16:23:00+00:00

mixedsentiment
mediumseverity
0.78relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

3 / 22 rows with source links

13.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
Djib's resolved
It’s me again;-) I use your plugin since few days and it works very well. But he asks me some performance issues because I have 15,000 posts. I wish to keep the synchronization every 3600 seconds for recent posts (maximum one month). For older articles, I will wish to establish a single synch daily. Can you help me ? https://wordpress.org/plugins/post-share-count/ Hi again) Pass ‘time’ parameter to function, example (inside the loop): if ( post_is_older() ) { the_post_share_count(array('time' => 60*60*24)); } else { the_post_share_count(array('time' => 3600)); } where post_is_older() is your custom function which returns true if post is old. Tahnk you ! I did that, it seems ok? $current_date = date(‘my’); if ( $current_date > get_the_time( ‘my’ ) ) { the_post_share_count(array(‘time’ => 60*60*24)); } else { the_post_share_count(array(‘time’ => 3600)); } Yes, it ok 😉

Comments

3 shown
zviryatko 2014-08-20T16:40:00+00:00

Hi again) Pass ‘time’ parameter to function, example (inside the loop): if ( post_is_older() ) { the_post_share_count(array('time' => 60*60*24)); } else { the_post_share_count(array('time' => 3600)); } where post_is_older() is your custom function which returns true if post is old.

Djib's 2014-08-20T16:57:00+00:00

Tahnk you ! I did that, it seems ok? $current_date = date(‘my’); if ( $current_date > get_the_time( ‘my’ ) ) { the_post_share_count(array(‘time’ => 60*60*24)); } else { the_post_share_count(array(‘time’ => 3600)); }

zviryatko 2014-08-20T17:04:00+00:00

Yes, it ok 😉