WordPress.org

Support

Support » Plugins and Hacks » Count per Day » [Plugin: Count per Day] Timeouts

[Plugin: Count per Day] Timeouts

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    Plugin Author Tom Braider

    @tom-braider

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

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

    Plugin Author Tom Braider

    @tom-braider

    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.

    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?

    Plugin Author Tom Braider

    @tom-braider

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Count per Day] Timeouts’ is closed to new replies.
Skip to toolbar