Profile picture not showing
-
The profile picture on our Facebook feed randomly stops loading. To fix this someone has to go in and manually clear the cache. I started troubleshooting how to fix this by making the cache time shorter. When I got into your code I noticed that the cache time is always set to 15 minutes regardless of what I set on the settings page. I uncommented your debug code at line 171 in the file /feed-them-social/includes/feed-cache.php. The $cache_time_limit variable is always set to 900 even though I’ve set the limit to 1 day on the settings page. I can see that reflected in the database as well when I check the transient timeout expiration time for the feed caches. So that means first off it isn’t honoring the time set by me on the settings page and second I can’t set the cache time shorter because it will never honor the value I return from the filter on that value. The problem seems to come from your logic on line 169 of that file:
$cache_time_limit = true === $this->settings_functions->fts_get_option( 'fts_cache_time' ) && '1' !== $this->settings_functions->fts_get_option( 'fts_cache_time' ) ? $this->settings_functions->fts_get_option( 'fts_cache_time' ) : '900';
This expression will never set the variable to the value returned from $this->settings_functions->fts_get_option( ‘fts_cache_time’ ) because it will never evaluate to true since it’s a string representation of a number and not a boolean.
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.