WordPress.org

Ready to get started?Download WordPress

Forums

Contextual Related Posts
Plugin Performance (12 posts)

  1. janolima
    Member
    Posted 1 year ago #

    Hello, I am using P3 (Plugin Performance Profiler).

    Since its last version, Contextual Related Posts is eating lots of resources.

    Do you use P3 to test your plugin?
    Do you have known issues about performance since its last version?

    Thank you

    http://wordpress.org/extend/plugins/contextual-related-posts/

  2. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    I haven't noticed any problems on my sites.

    I'll run the plugin through P3

  3. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    I've run this through P3 and there is indeed a time lag. I can't tell using the plugin what exactly is the issue, but from my experience it has to do with the mySQL query being run.

    Disabling "Find related posts based on content as well as title" may give a slight performance boost.

    Also, disable displaying related posts on the home page.

    Lastly, do you have a caching plugin like WP Super Cache?

    I have plans for using the opcode cache in a future version of the plugin.

  4. janolima
    Member
    Posted 1 year ago #

    Hi there!

    I think it has to be only with last versions of your plugin.

    I began using P3 about one year ago to regularly test my sites and I have to say that your plugin did not have the issue. That´s why I think the issue has to do with something present in recent versions of your nice plugin.

    Please tell me if you find something.

    Thank you very much.

  5. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Janolima,

    I'm going to check this out. I'm working on a version that will include caching (contributed by one of the users), which should definitely improve performance.

    I'll try to figure out what exactly I did that caused this issue.

  6. janolima
    Member
    Posted 1 year ago #

    I am using "Quick Cache" plugin which is great.

    Maybe you should give it a try.

    Regards

  7. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    CRP is perfectly compatible with caching plugins, and in fact I recommend this.

    However, P3 doesn't take into account this when assessing performance.

    The idea of the caching that I will be implementing is to put the list of related posts into a meta field which is cleared regularly.

    This prevents excessive repeated lookups every time the page is loaded

  8. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Do check out v1.8.6. It adds caching support for the plugin and also some minor performance improvement. I've noticed a much better performance with P3.

    Do check it out and let me know if it is better for you

  9. janolima
    Member
    Posted 1 year ago #

    You did it man. thank you very much. Now your plugin behaviour is totally normal according to P3.

    I do not understand very well how the new cahing support works. If I am using a cache plugin, do I need to activate the new caching support?

    The new caching support indicates that it will only be cleared when the plugin (CRP) admin page is resaved. Is that correct?

  10. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    You're right about the cache you need to activate the cache using the option under General Options.

    When a user visits your site the plugin will save the entire output of the related posts into a meta field. On a future visit, the meta field is checked and the output is displayed.

    This ensures no rechecking of options or even a mySQL query everytime.

    It works independent of any other caching plugins you have.

    The caveat is that if you keep making new posts these won't be captured in the "related posts" until you resave the CRP Admin Page and clear the cache.

  11. janolima
    Member
    Posted 1 year ago #

    Hi there,

    Since the last version of the plugin, the problem came back :(

    Again, is eating more resources than usual according to P3.

    Would you give it a check?

    Thank you,

    Alejandro

  12. Ajay
    Member
    Plugin Author

    Posted 1 year ago #

    Do you have the cache on? I haven't noticed any major issues on plugin loading on my site and on P3

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic