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?

Comments

cruze72 created an issue. See original summary.

yanniboi’s picture

Status: Active » Postponed (maintainer needs more info)

Can you add give steps to reproduce?

Eg.

  1. Install drupal (version)
  2. Install instagram_block (version)
  3. Configure instagram_block
  4. Place instagram_block
  5. Update drupal/instagram_block (to version)
  6. etc.
mbaynton’s picture

Status: Postponed (maintainer needs more info) » Active

I 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.

cruze72’s picture

StatusFileSize
new161.21 KB

Using Drupal 8.2.6 and Instagram 8.x-2.0-beta1. Block on the front page.

Block settings attached.

elex’s picture

I have the same problem. I think the correct Parameter is 'max-age' instead of 'max_age' in InstagramBlockBlock.php

spfaffly’s picture

StatusFileSize
new631 bytes

@elex is right. Patch attached for the max-age fix.

yanniboi’s picture

Status: Active » Reviewed & tested by the community

  • yanniboi committed 9e3e6f7 on 8.x-2.x authored by spfaffly
    Issue #2845838 by spfaffly, cruze72, yanniboi, mbaynton: Instagram block...
yanniboi’s picture

Status: Reviewed & tested by the community » Fixed

Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.