Hi,
I have an issue where sometimes the Instagram block is not updating consistently. I can get the block to update manually as expected but i have to run .update.php to do that.
Any ideas why?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | instagram-block-max-age-fix.patch | 631 bytes | spfaffly |
| #4 | Screen Shot 2017-02-13 at 19.39.12.png | 161.21 KB | cruze72 |
Comments
Comment #2
yanniboi commentedCan you add give steps to reproduce?
Eg.
Comment #3
mbayntonI experience this due to Drupal's caching. Some pages will display more up-to-date versions of the block than others based on when those pages were first cached. It never updates, ever, on the homepage until I flush caches.
Comment #4
cruze72 commentedUsing Drupal 8.2.6 and Instagram 8.x-2.0-beta1. Block on the front page.
Block settings attached.
Comment #5
elex commentedI have the same problem. I think the correct Parameter is 'max-age' instead of 'max_age' in InstagramBlockBlock.php
Comment #6
spfaffly commented@elex is right. Patch attached for the max-age fix.
Comment #7
yanniboi commentedYes. I had a look at the cache api documentation:
https://www.drupal.org/docs/8/api/cache-api/cache-api
https://www.drupal.org/docs/8/api/cache-api/cache-max-age
You are correct.
Comment #9
yanniboi commentedFixed