I should add that I’ve looked several times at this, and I’m not sure how the Tweeple plugin itself could ever pass 0
when setting the transient.
But in the last update posted to Tweeple a few days ago, I added a filter that allows you to manually filter the caching time, as it’s getting passed from Tweeple to WordPress’s set_transient()
.
https://github.com/themeblvd/Tweeple/blob/master/inc/class-tweeple-feed.php#L270
So, in theory the following code could be added to your child theme’s functions.php (or your own plugin, or wherever you want), to ensure that the Tweeple plugin is never passing 0
, which is what causes the never expiring transient.
function my_cache_time() {
return 7200; // Manually force cache time for all feeds
}
add_filter('tweeple_cache_time', 'my_cache_time');
You can give that a try on your sites and monitor several days, and see if anything changes. If nothing changes, then it suggests a bigger issue with setting WordPress transients in general and your server possibly? And if it does solve your problem, then it could point more towards the issue existing in the Tweeple plugin, itself.