• Resolved George

    (@giorgos93)


    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

    (@hcabrera)

    Hi @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:

    (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 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

    (@giorgos93)

    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

    (@hcabrera)

    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

    (@giorgos93)

    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

    (@hcabrera)

    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 3 years, 3 months ago by Hector Cabrera. Reason: Rephrased for clarity
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Question about ‘Sample Rate’’ is closed to new replies.