• Resolved mjb2000

    (@mjb2000)


    Hopefully you’ve seen the Facbook photo display method I described here.

    I have noticed a problem with caching. When I set-up the plugin I enabled 20 minutes cache and all seemed fine, displaying the 3 photos I expected. Now I have added 2 more photos these are not displayed unless I disable caching. If I disable caching then the new photos are seen, but if I re-enable caching, even just set to 2 minutes it reverts to just showing the 3 original photos.

    I should mention this happens when using your shortcode directly, and my Post Snippets based method of simplifying things.

    It seems as if once a cache has been created it is never replaced. Any idea what might be going on?

    Steps to re-create:

    • Pull JSON stream with 3 items
    • 3 items are displayed – CORRECT
    • enable caching = 20 minutes
    • 3 items are displayed – CORRECT
    • Wait 30 minutes
    • Add 2 items to JSON stream (now 5 items)
    • 3 items are displayed – INCORRECT
    • disable caching
    • 5 items are displayed – CORRECT
    • re-enable caching at @ 2 minutes
    • The original 3 items are displayed – INCORRECT

    https://www.ads-software.com/plugins/json-content-importer/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with stale cache?’ is closed to new replies.