• I am trying to resolve an issue where the related posts are not displkaying as quickly as the site owner would like. They are using your plugin.

    This is the code in their sidebar.php because they want the related posts in the sidebar.

    <?php if(is_single()) {?>
    <?php related_posts(array('title'=>1,'body'=>1,'tags'=>1,'categories'=>3, promote_yarpp =>0)); ?>
    <?php  $args = array('format' => 'ul');  post_links($args);?>
    <?php } ?>

    They are using Jetpack and do not have related posts enabled, but I’m not sure if that’s the issue or not.

    https://www.ads-software.com/plugins/yet-another-related-posts-plugin/

Viewing 1 replies (of 1 total)
  • Hi crlannen,

    The time is takes for YARPP to generate posts will vary based on a number of factors. But principally it will come down to one of the following:

    Slow database server
    Low performance file server (PHP execution for YARPP is relatively expensive)
    Caching

    In your case, caching may be an issue. The readme.txt (line 242) for YARPP says this:

    “Note that custom YARPP queries using the functions mentioned here are *not* cached in the built-in YARPP caching system. Thus, if you notice any performance hits, you may need to write your own code to cache the results.”

    It is not 100% clear if this refers to specifying additional values on related_posts() requests. However, I would suspect it does. In your current installation, would it be an option to transfer the arguments used in the code into the YARPP control panel? If so, I would recommend that approach, as it is 100% guaranteed to be cached.

    Hope that helps a bit, given that the plugin seems to have been abandoned, there isn’t a lot of ‘official’ support around anymore.

    Andrew

Viewing 1 replies (of 1 total)
  • The topic ‘How long does it take for YARPP to find related posts?’ is closed to new replies.