Support » Plugin: YOP Poll » scalability & performance when used with heavy traffic sites

  • Resolved bojote


    First, I would like to congratulate the author of this plugin. it’s clean, simple and easy to use, really a very very good plugin.

    I have a very high traffic wordpress site with about a millon pageviews per day, my setup is to usually cache everything in the frontend and use reverse proxies to my wordpress install which used APC and memcached, all in all, performance is really really good.

    I noticed after installing this plugin server load spiked dramatically and while checking the logs noticed hundreds of requests like this:

    GET /wp-admin/admin-ajax.php?action=yop_poll_load_js&id=2&_wpnonce=f2c2cda666&ver=3.9
    GET /wp-admin/admin-ajax.php?action=yop_poll_load_css&id=2&_wpnonce=d39b7f3962&ver=3.9

    Why is the CSS and JS loaded dynamically with each request via ajax? it’s expensive and does not scale well… or am I missing something obvious?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I patched this myself removing the referer check for the _css and _js functions and by removing the wpnonce when enqueuing the scripts. Certantly not needed as the wpnonce makes this uncacheable.

    Plugin Author YOP



    We have just released a new update and we’v included your fixes as well.

    Thank you for posting them.

    Best Regards,
    YOP Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘scalability & performance when used with heavy traffic sites’ is closed to new replies.