Support » Plugin: Rate my Post - WP Rating System » performance improvement

  • georgwordpress

    (@georgwordpress)


    I am using the plugin for several month and gave already five stars.
    The integration was very easy even with a static cache plugin – also due to the asynchronous ajax mechanism to request and display the current rating.

    So from users point of view the current post is displayed very quickly (first without the rating) and afterwards the rating is updated.

    But from servers point of view EVERY time when the user had a look at a post with a rating, the server received a ajax call to be handled not even by php but also starting some requests to the SQL database. In a shared hosting environment this limits the numbers of users that could be served at the same time very quickly on a low level.

    With a static cache file plugin and use cases with only rarely content changes most of the browser request were answered by static cache files, even without any PHP processing.
    In this situation the mandatory ajax request for every rating is a big disadvantage for the overall performance of the server.

    So I request a option to insert not only the “empty” rate my post plugin frame code but also the current rating result during the wordpress building loop – and suppress the ajax call.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Blaz K.

    (@blazk)

    Hi @georgwordpress,

    That’s something I’ll consider adding to the plugin in version 3 in which the code the code will be refactored. The SQL queries run only when the post is rated and never on page load. I use the plugin on shared hosting as well and I haven’t noticed any problems. I think it should run without problems on every decent shared hosting. But yeah it also depends on the number of visitors.

    Regards,
    Blaz

    georgwordpress

    (@georgwordpress)

    Hi Blaz,

    a standard wordpress system without any caching optimisations produces a huge firework of php processes and sql querries. And obvious in a lot of use cases even this standard wordpress system will operate in a shared hosting environment without any problems.

    And in such a standard WP system the overhead of the additional ajax call of RMP is minimal. Nevertheless – with small improvements the scaling effect is enorm.

    But I have to be honest – I struggled with Rate my Post when I needed a full static offline version e.g. to archive the current snapshot.

    For example plugins like WP2Static are providing this function.

    So I became aware of missing the rating stars on every post due to the asynchron ajax function of RMP to display the rating.

    On the other hand I have another plugin wpdiscuz for commenting and rating comments, also using ajax requests, but only when a user changes a rating.

    So the comment ratings were included in my full static offline version – but I missed the post ratings due to the RMP lazy load function.

    Regards,
    Georg

    Plugin Author Blaz K.

    (@blazk)

    It’s a good point Georg. I’ll look into this when I start working on V3.

    Blaz

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘performance improvement’ is closed to new replies.