WordPress.org

Ready to get started?Download WordPress

Forums

Count per Day
Timeouts (7 posts)

  1. frg
    Member
    Posted 2 years ago #

    in another post i described server glitches i had with Count-per-Day From time to time (error 500 - internal server error) - but otherwise flawlessly working.

    Since the last two versions, while monitoring my page with http://browsermob.com i get about 1..2 times a day:

    Timed out after 10000 ms while waiting for network traffic to stop:

    GET http://f****.org/*/wp-content/plugins/count-per-day/ajax.php?f=count&page=27 -998 null 0 B transmitted 10.2 secs

    Any ideas where this comes from. doesnt seem to be a big thing - maybe just dropping one count in the end.

    http://wordpress.org/extend/plugins/count-per-day/

  2. frg
    Member
    Posted 2 years ago #

    After looking at other logs I have to add that also in cases when everything is fine (all page elements´ server status ok) ajax.php takes the longest time with +/- 3secs..

    i guess i have to use this ajax count because i use W3TC as cache plugin.

  3. Tom Braider
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry, no idea at the moment. But you can check which function(s) makes trouble.
    In ajax.php is an array $cpd_funcs. Delete it entries an use only one for a test. You can call the file directly to see the output. It must show a string with entries like getReadsAll===333|...

  4. frg
    Member
    Posted 2 years ago #

    hi tom,
    thanks for the quick answer!
    yes, when i look at ..plugins/count-per-day/ajax.php?f=coun&page=27
    i get "show===1967|getReadsAll===11489|..."

    i dont understand php, but is this ajax code only for to opionally show read on my page, which ich dont use, or is it also necessary for the counting mechanism in general, when i use a cache?

    if it´s for this first option i just switch ajax counting off..

  5. Tom Braider
    Member
    Plugin Author

    Posted 2 years ago #

    This is the correct output, so it works.
    The Script will call per Javascript/Ajax to count the page vies and update the widget (if one on the site). The update function take the most time. Maybe i have to separate the functions, count everytime and update the widget only if set the option.
    btw: how many eintries do you have in the database, say reads at all? too many can slow down the functions. in this case you can use the collection.

  6. frg
    Member
    Posted 2 years ago #

    thanks again for your answer,

    "Current size of your counter table lv9w31_cpd_counter is 1.05 MB."

    yes, the script works, i switched off the ajax code (=no more timeouts!) & it still counts.

    but again, to make my last question clear:

    is there any difference in CdD´s ability to count, when i use a cache, but dont need the widget on my page - so have ajax counting off?

  7. Tom Braider
    Member
    Plugin Author

    Posted 2 years ago #

    you have deactivated the ajax-cache-function and the counter counts your visitors? maybe your cache plugin don't create static pages and the normal wordpress functions will called.
    if your cache plugin creates static pages you have to count per ajax. this code calls the script ajax.php with the count function.
    i'm a little confused.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic