Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
There is a greater than where there should be a less than in the caching code in facebook_pull.module on line 215 and 256.
Currently they say:
if (!$cache || $cache->created + FACEBOOK_PULL_CACHETIME > time()) {
They should be:
if (!$cache || $cache->created + FACEBOOK_PULL_CACHETIME < time() ) {
Currently it only connects to Facebook if the last call was less than 20 minutes ago or if you clear all caches.
Comment | File | Size | Author |
---|---|---|---|
#1 | 2395681-1.patch | 1.14 KB | Steven Merrill |
Comments
Comment #1
Steven Merrill CreditAttribution: Steven Merrill commentedA patch is attached.
I have also converted time() to REQUEST_TIME, which is a best practice.
Comment #2
daveferrara1 CreditAttribution: daveferrara1 commentedIssue #2395681 by Steven Merrill: Caching doesn't work correctly