Announcement

Collapse
No announcement yet.

ACP index stats update

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ACP index stats update

    Is this admin controlled anywhere?
    That is, how can I get it to report current info (like before).

    ==============

    I assume that in response to user/admin complaints about server load, you changed the code to report only periodic snapshots. But I really don't understand the point of displaying old data. Why not just stick the stat access under a menu so that it is only displayed when desired? (But display current data always.)

  • #2
    On my ACP index, the stats I am referring to are listed under:
    "Welcome to the CAF Admin Control Panel "

    I am referring to data points such as:
    Unique Members Today
    New Threads Today
    New Users Today
    New Posts Today

    Comment


    • #3
      It updates once a day around midnight as long as scheduled tasks are running.
      Translations provided by Google.

      Wayne Luke
      The Rabid Badger - a vBulletin Cloud demonstration site.
      vBulletin 5 API - Full / Mobile
      Vote for your favorite feature requests and the bugs you want to see fixed.

      Comment


      • #4
        Thank you for your response.

        I'm not talking about
        ACP > Statistics & Logs > Stats

        I'm talking about the current activity stats displayed on acp/index.php in the table titled:
        "Welcome to the CAF Admin Control Panel"

        This updates about once an hour.

        Comment


        • #5
          You can change the frequency of any scheduled task in the Scheduled Task Manager if that is what you want to do. The defaults are the recommended values for the least amount of resources used.

          Personally, I go into my Admin CP about once a day since all moderation tasks are easier using inline moderation so I don't need to change those values.
          Translations provided by Google.

          Wayne Luke
          The Rabid Badger - a vBulletin Cloud demonstration site.
          vBulletin 5 API - Full / Mobile
          Vote for your favorite feature requests and the bugs you want to see fixed.

          Comment


          • #6
            Which Scheduled Task controls this?

            Is it bundled in with a bunch of other tasks?

            Can I split it off as a separate task (and if so how)?

            Or if it can't be split off, how much overhead is associated wth running this task more frequently?

            Can't I just get it to run on frame refresh (as before) or automatically when acp/index.php loads?

            Comment


            • #7
              According to the code, it is "Daily Statistics Log" which by default runs once every 24 hours. If it runs more often then you have already changed this or you have an additional CRON running.

              It runs 4 queries to select new users, new posts, new threads, and active users in the last day and rebuilds the datastore. Then it updates the stat table for the statistics logs. As far as I can see, none of the other default scheduled task files update these values.

              I would say its resource usage is light to moderate depending on your site's activity.
              Translations provided by Google.

              Wayne Luke
              The Rabid Badger - a vBulletin Cloud demonstration site.
              vBulletin 5 API - Full / Mobile
              Vote for your favorite feature requests and the bugs you want to see fixed.

              Comment


              • #8
                My "Daily Statistics Log" scheduled task is untouched, and is set to run once a day at the end of the day per the ST Manager.

                As confirmation, the stats accessible via:
                ACP > Statistics & Logs > Stats
                only change after the end of the day (and I've never asked it to do anything else).

                The mini-stats available on ACP home update (about?) once an hour.

                In the 3.0 days, they updated every time I accessed
                acp/index.php?do=home

                IIRC, somewhere early in the 3.6.x series, they only updated if I did a frame refresh.

                Now, in the recent 3.6.x series, they only update once an hour.

                Comment


                • #9
                  Originally posted by Wayne Luke View Post
                  It runs 4 queries to select new users, new posts, new threads, and active users in the last day and rebuilds the datastore.
                  What is meant by "the last day"?
                  Certainly the stats accessed via ACP > Statistics & Logs > Stats
                  are reported no more frequently then "Daily."

                  But the activity stats on acp/index.php?do=home have "always" been more frequently tracked.

                  Comment


                  • #10
                    Originally posted by Dabbler View Post
                    Is this admin controlled anywhere?
                    That is, how can I get it to report current info (like before).

                    ==============

                    I assume that in response to user/admin complaints about server load, you changed the code to report only periodic snapshots. But I really don't understand the point of displaying old data. Why not just stick the stat access under a menu so that it is only displayed when desired? (But display current data always.)
                    I know exactly what you are looking to do and how to do it...

                    Find the following file:

                    admincp/index.php

                    Find the following code (lines 19-21):

                    Code:
                    // #################### PRE-CACHE TEMPLATES AND DATA ######################
                    $phrasegroups = array('cphome');
                    $specialtemplates = array('maxloggedin', 'acpstats');
                    Replace it with this code:

                    Code:
                    // #################### PRE-CACHE TEMPLATES AND DATA ######################
                    $phrasegroups = array('cphome');
                    $specialtemplates = array('maxloggedin');
                    Enjoy!!!

                    Comment


                    • #11
                      <<Just the one line changed, right?>>

                      Brilliant, that did it.

                      Thanks!

                      Comment


                      • #12
                        Will this eat up alot of resources if I were to edit my admincp/index.php file, as Falcon Capt mentions in his post #10. I just wondering and not going to actually edit any of my files.

                        Comment


                        • #13
                          My God talk about taken in circles.

                          I use this also and can confirm it works for anyone else with this issue. No it does not affect performance.

                          But mime is still of by 40 users it "seems" and it's not due to the server time difference.

                          I really have to look into this.

                          After upgrading to 3.6 my registrations per day dropped from around 800 to 650.

                          Comment

                          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                          Working...
                          X