Title: Question about &#8216;Sample Rate&#8217;
Last modified: November 10, 2021

---

# Question about ‘Sample Rate’

 *  Resolved [George](https://wordpress.org/support/users/giorgos93/)
 * (@giorgos93)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/)
 * Hi, Héctor!
 * I’ve noticed a “Data Sampling” option in your plugin’s settings. After I read
   the description, I decided to turn it on. However, I don’t understand, what sample
   rate should I put? I have about 1250 visitors per day atm.
 * I read your documentation, but I still don’t understand this Rule of Three. I
   even tried the calculator with this system.
 * Can you explain me for future, what numbers should I put in Rule of Three calculator,
   except for amount of visitors?
 * Thanks in advance!

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/#post-15054911)
 * Hi [@giorgos93](https://wordpress.org/support/users/giorgos93/),
 * The _Sample Rate_ for your traffic levels would be between _0.5_ and _1_. This
   is how you calculate it using the [Rule of Three](https://en.wikipedia.org/wiki/Cross-multiplication#Rule_of_three):
 * `(current_traffic_levels * 100)/125000`
 * _125,000_ here is the minimum daily traffic number I consider to be “mid sized
   traffic”.
 * So, if we use your daily visitors numbers with this equation and 125000 as the
   target traffic this is what we get:
 * `(1250 * 100)/125000 = 1`
 * In my opinion you don’t really need to use the [Data Sampling](https://github.com/cabrerahector/wordpress-popular-posts/wiki/7.-Performance#data-sampling)
   feature on your website. At least not yet. Your current traffic levels are just
   not high enough that you need to enable Data Sampling to keep WPP from affecting
   your site’s performance.
 * Hope that clarifies things a bit. If you have any further questions though don’t
   hesitate to ask.
 *  Thread Starter [George](https://wordpress.org/support/users/giorgos93/)
 * (@giorgos93)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/#post-15055005)
 * Thanks for answer! Not I got it! I won’t enable it then 🙂
 * I have another question: I use WP Fastest Cache plugin, and automatically clear
   cache of all website every 10 hours. So in this case, will enabling your option“
   Caching DB queries results” have any meaning? Without this option my popular 
   posts in sidebar widget will be refreshed every 10 hours, right? Or this DB queries
   will be called anyway, and I need to turn on this option in order to save resources?(
   I put 6 hours refreshing interval there).
 * And if “Caching DB queries results” option in needed in my case, then what intervals
   will be between clearing popular posts cache? 6 hours, or 10 hours? Or both?
 * And also, what ‘Ajaxify widget’ option is for? To show posts in live mode with
   caching plugin enabled, right? I just don’t want to have extra ajax calls, and
   I am comfortable with popular posts being cached. So this option is not needed
   in my case? right?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/#post-15055033)
 * > I use WP Fastest Cache plugin, and automatically clear cache of all website
   > every 10 hours. So in this case, will enabling your option “Caching DB queries
   > results” have any meaning?
 * If you’re not using the Ajaxify Widget option (more on this in a sec) then no,
   using the _Data Caching_ functionality won’t do much. Your website will serve
   HTML files during these 10 hours, then once the cache expires WordPress will 
   load and execute all of the PHP scripts (theme, plugins, etc) again, WP Fastest
   Cache will regenerate the page cache (HTML files) and the cycle goes on and on.
 * > And also, what ‘Ajaxify widget’ option is for? To show posts in live mode with
   > caching plugin enabled, right?
 * Correct. The plugin will load your WordPress Popular Posts widget / block via
   AJAX to bypass WP Fastest Cache’s cache in order to show “live” posts.
 * > I just don’t want to have extra ajax calls, and I am comfortable with popular
   > posts being cached. So this option is not needed in my case? right?
 * Yup. If you don’t mind having your popular posts list being updated every 10 
   hours or so then yeah you don’t need to use either the Ajaxify Widget feature
   nor the Data Caching functionality.
 *  Thread Starter [George](https://wordpress.org/support/users/giorgos93/)
 * (@giorgos93)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/#post-15055072)
 * Thanks for detailed explanation!
 * The thing is: until today I had all the options above turned off. But I contacted
   my hosting support team, and they said, that yesterday I had 2934 calls of wp-
   json/wordpress-popular-posts/v1/popular-posts. And I thought, it was because 
   of that options somehow.
 * But since they are not needed in my case, then why there are so my calls to this
   path? Does it have to be like that?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/#post-15055285)
 * 2934 calls isn’t really significant (that’s 122 requests per hour in average)
   which shouldn’t have any major impact on performance – unless there are other
   things going on with your website / your server that might be affecting performance.
   WPP alone couldn’t be causing issues with only this many requests.
 * > then why there are so my calls to this path? Does it have to be like that?
 * Can’t say without having a detailed log of the traffic that visited that URL.
   If I had to guess:
    - Page views from visitors checking your posts & pages.
    - Bots visiting that URL directly for some reason (eg. I know that at least 
      Googlebot, Google’s web-crawling bot, does check that URL sometimes).
 *  -  This reply was modified 4 years, 7 months ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
      Reason: Rephrased for clarity

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

The topic ‘Question about ‘Sample Rate’’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [4 years, 7 months ago](https://wordpress.org/support/topic/question-about-sample-rate/#post-15055285)
 * Status: resolved