Support » Plugin: MashShare - Social Media Share Buttons, Social Share Icons » When does the caching refresh?

  • Resolved Bitmaniacs

    (@bitmaniacs)


    Hi,

    Jus a small question to better understand how the cacheing works. When you set it to 5 minutes. Does it:

    A) refresh after 5 minutes, even if no one visits your page in 5 minutes?

    B) refresh the first time someone visits your page after a period of 5 minutes or more?

    https://wordpress.org/plugins/mashsharer/

Viewing 2 replies - 1 through 2 (of 2 total)
  • To A) No, there must be at least one visitor on your page to fire the getSharedcount() function and to write the number of shares into the database.

    To B) When the 5min cache time expired, the share counts will be requested from sharedcount.com one time. All next visits get the share counts directly from database stored transient cache. After the next expiration time they will be requested again from sharedcount.com and the request is passing through and does not call the database.

    And again and again and again:-)

    Hope i did not explained it too complicated.

    Thread Starter Bitmaniacs

    (@bitmaniacs)

    That clears things up, thanks for taking your time to answer this!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘When does the caching refresh?’ is closed to new replies.