• Resolved rebeccaolson

    (@rebeccaolson)


    Hello! I’m using the Smashballoon Instagram Pro plugin to display images from a specific user account on specific pages. I’ve been having an issue with a site not updating the images even when they’re correctly posted and hashtagged – and we have determined the issue is with the Litespeed cache (I have to go in and manually purge the site in order for the new images to populate.)

    Since the point of the plugin is to be dynamic and have images pop up on the website when they’re posted on Instagram, I need to fix the Litespeed settings. There are so many settings I’m not sure where to start. Can anyone guide me? My two best guesses are either to disable caching on rest API (easiest) or to add the individual pages to “Scheduled Purge URLs”. Am I on the right track? I just want to do it correctly, and only disable the specific features I need (not accidentally disable something that is unrelated to my issue.)

    Thank you!

    • This topic was modified 3 years, 7 months ago by rebeccaolson.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    when you say “posted and hashtaged” , was it happen on your site ? or happen on Instagram site ?

    generally speaking , for a high-dynamic site, which is cache unfriendily , we should just turn off cache on these pages , like buddypress

    or if it’s like a post action from your site , you can add a purge action when user make a post

    
    do_action( 'litespeed_purge_post', $post_id );
    

    Best regards,

    Thread Starter rebeccaolson

    (@rebeccaolson)

    Hi there! So the way the plugin works, is that it is linked to my Instagram account. I have plugin specific shortcode on different site pages to create a “feed” that is linked to Instagram, and is supposed to be dynamic/regularly updated. Basically, when I post an image to Instagram with a particular hashtag, that image should show up on the page with that shortcode.

    For example, in the page https://www.tooth-n-nail.com/makerstuff/ I have a shortcode that says any image I post that has the hashtag #makerstuff will show on that page. However, because of the Litespeed cache settings, I have to go in and manually purge the site cache in order for the pages/feeds to repopulate and the image to appear.

    So to resolve the above example, would you recommend I go to Litespeed > Cache > [3] Purge, and add https://www.tooth-n-nail.com/makerstuff/ to Scheduled Purge URLs?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    so basically , you have a “shortcode” to reads content from instagram site ?

    if that is shortcode , then try enable ESI , and change that shortcode to ESI block

    e.g.

    [your_short_code] —> [esi your_short_code ttl="0"]

    schedule purge only happens like once per day , another way is to exclude that page from being cached , or set it to a very low TTL, like 5 minutes, 10 minutes or something like that if you want to keep it up-to-date

    Best regards,

    Thread Starter rebeccaolson

    (@rebeccaolson)

    Thanks! I’d rather not change the shortcode, since I just now finally got it to work.

    So you’re suggesting that rather than purging once a day, I would go to Litespeed > Cache > [4] Exclude and add /makerstuff/ to “Do Not Cache URIs” – and that would make it so that page would never be cached?

    Thanks again for your help!

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    yes , that will make page not be cached

    Best regards,

    Thread Starter rebeccaolson

    (@rebeccaolson)

    Perfect – I’ll try that and hopefully it will resolve the issue. Thank you for all of your help!

    Plugin Support qtwrk

    (@qtwrk)

    no problem , please keep me posted

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Litespeed: correct settings to work with Smashballoon Plugin?’ is closed to new replies.