Support » Plugin: Social Sharing Plugin - Sassy Social Share » Share count cache and Page cache

  • Hi,
    i really appreciated your plugin 🙂
    i have an issue : The share count cache is not compatible with page cache
    How to reproduce:
    1. The page is cached without the heateor-sss-no-counts=”1″ attribute
    2. on subsequent visits to the cached page, a new ajax request is made and the counts are refetched and recached every time.

    How i would resolve:
    – remove the heateor-sss-no-counts
    – make a ajax request every time
    – the ajax callback should be a “maybe_fetch_share_counts” fuction, which returns cached stuff if cache filled, otherwise “fetch_share_counts”

    Thanks and bye 🙂

    • This topic was modified 1 year, 11 months ago by lucastello.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Heateor Support

    (@heateor)

    Hi there,

    Thanks for your valuable feedback 🙂
    The idea behind using “heateor-sss-no-counts=’1′” was to not use AJAX request every time a webpage is loaded. But if you want to update share counts on every page load (not recommended), you can keep the “Share count cache refresh count” option in the “Miscellaneous” section blank.

    Thread Starter lucastello

    (@lucastello)

    i didn’t explain well the issue: when the site has a page cache plugin, your plugin ends to fetch the counts on every request…

    Plugin Author Heateor Support

    (@heateor)

    If we do as you suggested – “remove the heateor-sss-no-counts”, plugin will send AJAX request on every page load to fetch shares. This will increase load on your website-server. That’s what I explained in the previous reply.
    I understand the issue you are facing. We will consider this for upcoming releases and will release the bugfix version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Share count cache and Page cache’ is closed to new replies.