Title: When does the caching refresh?
Last modified: August 22, 2016

---

# When does the caching refresh?

 *  Resolved [Bitmaniacs](https://wordpress.org/support/users/bitmaniacs/)
 * (@bitmaniacs)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/when-does-the-caching-refresh/)
 * 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/](https://wordpress.org/plugins/mashsharer/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/when-does-the-caching-refresh/#post-5260357)
 * 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](https://wordpress.org/support/users/bitmaniacs/)
 * (@bitmaniacs)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/when-does-the-caching-refresh/#post-5260368)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/mashsharer_33bbee.svg)
 * [MashShare - Social Media Share Buttons, Social Share Icons](https://wordpress.org/plugins/mashsharer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mashsharer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mashsharer/)
 * [Active Topics](https://wordpress.org/support/plugin/mashsharer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mashsharer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mashsharer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Bitmaniacs](https://wordpress.org/support/users/bitmaniacs/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/when-does-the-caching-refresh/#post-5260368)
 * Status: resolved