Conversation
supportEventhough I am using the latest version of the plugin, the cache is not working. Inside functions.php the below line always returns empty: $count = $cache[ $function . '_' . $post_id ]; Therefore, the transient seems empty, and social counts are retrieved again without checking the cache period. https://wordpress.org/plugins/posts-social-shares-count/
BTW, I am working on localhost, so every share count is 0. Maybe the plugin mistakes 0 for cache not set?
Hi feverinlove, You were right, there was an issue with the 0 it was mistakenly considered an empty value. I modified the function and pushed version 1.3.1 which should fix this issue. Kindly please report if it doesn’t fix the issue or if you find another issue. Thanks!
BTW, I am working on localhost, so every share count is 0. Maybe the plugin mistakes 0 for cache not set?
Hi feverinlove, You were right, there was an issue with the 0 it was mistakenly considered an empty value. I modified the function and pushed version 1.3.1 which should fix this issue. Kindly please report if it doesn’t fix the issue or if you find another issue. Thanks!