WordPress.org

Ready to get started?Download WordPress

Forums

Top 10 - Popular posts plugin for WordPress
[resolved] perfomance problem with 1000000 page views (5 posts)

  1. uradvd
    Member
    Posted 1 year ago #

    The other day on my two sites http flood attack was not much more for 3 days has been generated about 1,000,000 page views. Sites themselves are well optimized with nginx cache and wp total cache. The problems were more with the top 10 plug it dynamically finds all the posts constantly pulls php and mysql. Suggest a serious look in the direction of increasing productivity plugin. There are a few ideas.
    1. Use the object cache for counters such as at a certain time is down in the settings
    2. Use admin-ajax.php to query mysql instead of a separate file

    http://wordpress.org/extend/plugins/top-10/

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for the suggestions.

    I've got the admin-ajax.php option on a priority because of the load issue which I have optimised over the past few versions.

    I need to study the use of object cache for counters. I'm not sure I understand what you mean by "at a certain time is down in the settings". Could you please clarify what exactly you have in mind?

  3. uradvd
    Member
    Posted 1 year ago #

    I meant to use the settings in the admin panel to manage the time of clearing the cache

  4. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Sounds good. Let me see what I can do.

    I haven't used this below, but based on what I read:

    https://codex.wordpress.org/Class_Reference/WP_Object_Cache#Examples

    The most common use for the object cache is caching the results of expensive SQL queries so they're not performed multiple times within a page load. In the below example, imagine the $query variable is an expensive SQL query.

    Wouldn't this end up not recording subsequent hits?

  5. uradvd
    Member
    Posted 1 year ago #

    You can only cache the widget itself when output in the object cache and counter itself. A counter that counts not only will look for ways to optimize

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.