WordPress Popular Posts and WP Super Cache

popular-posts
Popular Posts

If you have journeyed to my footer, you will have noticed that I have a “Popular Posts” section. This is made possible by the well written WordPress Popular Posts widget by Héctor Cabrera.

One challenge I ran into was WP Cache/WP Super Cache. The plugin wasn’t as responsive with WP Cache enabled. So I delved into the plugin code and created a version that works with WP Cache.

The trick is to load the content in via AJAX. I also make use of the “NOSCRIPT” tag for users without JavaScript enabled.

I have tried getting ahold of the author, but all of the links to his site aren’t functioning.

As a result, I am releasing a download here.

Feel free to leave any feedback in the comments. Please note that the installation instructions, FAQ, screenshots, and support should be directed to the official WordPress Popular Posts page.

Related posts:

  1. WordPress Static Random Posts Widget
  2. WP Grins Lite
  3. WordPress IamMobiled Plugin
  4. Can You Complain When Something is Free?
  5. More Falling Pixels

14 Responses to “WordPress Popular Posts and WP Super Cache”

  1. Nice plugin update! I have tried WP Cache with 2 of my blogs and it does make things smoother. I’ll try out your updated version of popular posts with it. I have about 10 blogs and was planning to enable WP Cache on the rest of them. Have you noticed it not working too well with any other plugins?

    • Only stats type plugins that use php to do the processing. Plugins that utilize Ajax to do the processing are immune to WP Cache.

  2. Héctor Cabrera Says:
    November 24, 2009 at 3:32 pm

    Hi Ronald,

    First of all, many thanks for this iniciative of yours! Very kind of you!

    I’ve been wanting to implement this on my plugin for quite some time, however I’ve been quite busy at work lately and haven’t had enough time to resume WPP’s development.

    Anyways, I should be getting back to business and release a new version of WPP quite soon. It will include your modifications and you’ll get all credits for your work, of course.

    You can use the email address on this comment to contact me if you ever need to.

    Thanks again for your help! I really appreciate it!!

  3. Hector,

    You’re welcome. If you like, you can add me as a commiter for the plugin and I can commit the changes. I’ll also can e-mail you what parts have changed.

    Take care and good luck with the plugin.

  4. convertEntities is undefined.

    No posts show up in the sidebar.

  5. I actually remove this plug-in for same reason. I can’t afford to disable the supercache so I’d rather disable it. I will try your version and let me test if it will solve the issue on my blog. Thanks Ron!

  6. I use W3 Total Cache, untill now is working fine.

  7. Thank you very much for the update. However, whenever I try to activate it, it says “the plug-in does not have a valid header”. What could be the problem?

    Also, how would I go about in eliminating the bullets from the lists?

    Thanks

  8. I use the WordPress Popular Posts plugin. It’s good in general, but frustrating in one way: I had it set to display posts according to the number of views since I installed the plugin. Today I changed that mode to “average views per day.” Now the widget displays: “Sorry. No data so far.”

    Even though it has been recording how many views each post gets each day, changing the mode has actually reset the counter. It’s not going to use the data that it has already recorded, it’s actually starting again from the time that I changed the display mode. This is just crazy. Why not use the existing data?

  9. Hi – I appreciate the help! This is my first time using WordPress but I’m still a touch lost – I can’t keep all these options, plugins, and themes straight! But I’m slowly getting the hang of it, thankfully. I’m guessing that installation and setup won’t take forever next time. Anyhow, slick blog – I’m subscribed to your RSS feed now so I’ll check in more often!

  10. Hi Ronald, thanks for sharing your modifications. Has Hector implement your changes in the current release (2010-4-3)?

    The official description says, that WPP supports WP-Super-Cache. But in your zip are at least 3 files (ajax-processor.php etc) that aren’t included in the official release.
    … and the official release isn’t counting the views in my blog, as long as super cache is activated.

    So I’m wondering if I missed some options?

    • Ronald Huereca Says:
      May 7, 2010 at 12:50 pm

      Nope, doesn’t look like it. I’ve tinkered with the code some more to resolve some bugs and reduce queries. If you’re interested, I can update the zip with that, but it’s still the older version. But, it works :)

      • Hello Ronald and thanks for your offer. I decided to use the API of my stats tool (piwik) – so I haven’t to collect the data twice. As an user of WP Super Cache it shouldn’t have a performance impact.

        But you should definitly make your own plugin with all your changes. So you can trigger the “new version available” message by yourself!

        Thanks anyway.

Leave a Reply

Use your real name. Be polite. Please read my comment policy.