jaredatch/Shared-Counts

Add $post_id to needs_updating()

Closed this issue · 0 comments

You can customize how often Shared Counts refreshes the counts using the shared_counts_update_increments filter (see here).

But you can only specify the global rules - you can't have different rules based on the post type, category, or other attributes of the post.

If we pass $post_id as a parameter to needs_updating() and include it in the filter, you could make posts in a certain category refresh more often than others.