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.
The conditional that is checking the FACEBOOK_PULL_CACHETIME
is incorrect, resulting in the cache NEVER being recreated after it has expired (unless the cache entry is cleared by some other means).
Comment | File | Size | Author |
---|---|---|---|
#7 | fix_incorrect_conditional_cachetime-1960496-7.patch | 1.13 KB | kyuubi |
#2 | fix_incorrect_conditional_cachetime-1960496-2.patch | 1.13 KB | mdeltito |
Comments
Comment #1
mdeltito CreditAttribution: mdeltito commentedComment #2
mdeltito CreditAttribution: mdeltito commentedthis version is correct
Comment #3
mnarendrak CreditAttribution: mnarendrak commentedHi,
Even though i changed the cache expiration logic to
if (!$cache || $cache->created + FACEBOOK_PULL_CACHETIME < time()) , its not working.
After flushing all caches of my drupal applcation, then only facebook latest feeds are coming.
Please any one guide me how to resolve the issue.
Thank you
Comment #4
esbite CreditAttribution: esbite commentedThis patch works great for me. Please release a new version with this fix :)
Comment #5
mdeltito CreditAttribution: mdeltito commentedComment #6
daveferrara1 CreditAttribution: daveferrara1 commentedIssue #1960496 by mdeltito: Incorrect logic for cache expiration
Comment #7
kyuubi CreditAttribution: kyuubi commentedHey,
The provided patch no longer applies.
Can I ask why it has never been committed as the issue still persists?
Here is a rerolled version of the patch, please commit otherwise people might overlook this and use it without posts ever being cached.
Comment #8
daveferrara1 CreditAttribution: daveferrara1 commentedYes. Let me have a look.
Comment #9
mdeltito CreditAttribution: mdeltito at Phase2 commented@daveferrara1 it looks like the wrong version of my original patch was applied. The update from @kyuubi fixes this appropriately.
EDIT: see here https://www.drupal.org/commitlog/commit/23464/8e4869693b493e1154c2359b2a...
note that patch-1 was applied instead of patch-2
Comment #10
daveferrara1 CreditAttribution: daveferrara1 commentedYeah I see how we got the less than and greater than mixed up in there. I'll get it into 7.x-2.2
Comment #11
daveferrara1 CreditAttribution: daveferrara1 commentedNVM was thinking maybe 20 minutes should be changed. I guess if someone wants they can change it.
Comment #12
daveferrara1 CreditAttribution: daveferrara1 commentedIssue #1960496 by mdeltito, kyuubi: Incorrect logic for cache expiration