• I have had a warning from my hosts that my site is hammering the cpu (between 60-80%) on a shared host and in the logs it seems to be down to the wp-admin/admin-ajax.hp file.
    This seems to be involved with comment request from the p2 theme (as far as i can tell from the log)
    I know the file is ok as the hashes for the file on my server are exactly the same as from the wp2.84 install file.

    So has anyone got any ideas?
    Does this get used a lot on the P2 theme as when my site gets busy and the server get hammered this won’t be acceptable and sustainable by the server hosts. (Xilo)
    I do have a set of about 20 plugins and the theme isn’t standard (www.aimb.ws) but this seems to happen even with almost all the plugins disabled.
    Is there anyway of monitoring which files get used lots other than the raw log files.
    Thanks

Viewing 7 replies - 16 through 22 (of 22 total)
  • Since the requests are returning 304s and most of the time the request would be cached, this should not be a problem. But please post more information as you come across it.

    I have now upgraded to P2 version 1.1.3 and still using WPMU 2.8.6

    Now each client results in these requests every 30 seconds :-

    `88.57.33.153 – – [30/Dec/2009:13:14:57 +0100] “POST / HTTP/1.1” 200 125 “https://micro.blogs.weloveit.info/?p=12960” “Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.4; .NET CLR 3.0.30729; OfficeLivePatch.1.3)”
    88.57.33.153 – – [30/Dec/2009:13:14:57 +0100] “GET /?p2ajax&action=get_latest_comments&load_time=2009-12-30%2009:14:17&lcwidget=false&vp[]=12960&_=1262175296500 HTTP/1.1” 304 – “https://micro.blogs.weloveit.info/?p=12960” “Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.4; .NET CLR 3.0.30729; OfficeLivePatch.1.3)”`

    Why is the second request resulting in a 304 ?

    Hi guys!

    I’ve been wondering for some time already why the “Add New Post” screen would POST something to the server every minute even when I’m tired of writing and gone asleep.

    First I thought it was a bug with autosaving a draft when no changes to the post are made.

    Now, having discovered the POST’s are generated by “Publish” block of the post-new.php page, I’m looking for a way to “fix” it. You know, sometimes it is undesirable to have hundreds of dummy requests spoiling the logs and wasting, say, mobile traffic.

    Any ideas?

    Thanks!

    The latest version of P2 theme doesnt seem to have ths code.
    where can I find it?

    tia

    the same problem with the last wordpress

    I don’t see any of the code mentioned above anywhere in functions.php. Could you please tell me how to go about implementing this fix in the current version of P2? I need to know ASAP.

    Just update for those who search how to change the frequency of admin-ajax.php calls.

    File is: p2/inc/js.php
    Line 96: var updateRate = “30000”;

    If any of you guys from p2 are reading this, I think it would be useful to have this option in Theme Options in admin.

Viewing 7 replies - 16 through 22 (of 22 total)
  • The topic ‘P2 theme causing very high admin-ajax.php usage’ is closed to new replies.