• Resolved acroplex

    (@acroplex)


    Hello – the plugin is much better looking than the alternative I have been using (Related Posts Thumbnails) but there is an issue I need resolved.

    When using a CDN and caching system such as Cloudflare, there is no way to exclude the plugin from serving the same thumbnails every time, for the same page.

    Is there a solution to that?

    Thanks in advance.

    https://wordpress.org/plugins/wordpress-23-related-posts-plugin/

Viewing 5 replies - 1 through 5 (of 5 total)
  • PetraP

    (@petrap)

    Hey acroplex,
    thanks for reaching out – I’ll gladly help!

    The thing is – when you write a post, the plugin generates the cache of its own to avoid making any unnecessary information retrieval requests. You could change this but it could cause a major performance issue. So if you decide to do this, please let me know and I will help you out.

    Take care & have a nice day,

    Petra

    Thread Starter acroplex

    (@acroplex)

    Hi Petra,

    Thanks for the quick response. I would like to turn the caching as implemented by the plugin off, please. Let me know if there is a built in switch, or what I need to edit in the code.

    Many thanks in advance!

    silvoslaf

    (@silvoslaf)

    Hey, hey, hope you don’t mind me replying on Petra’s behalf.

    Just to make sure we’re on the same page here: you won’t get different thumbnails for the same related posts. Following code will cause related posts to be regenerated every time a reader will visit your blog. If you expect a lot of readers, we strongly advise you against this change!

    In file recommendations.php comment out parts of two rows and set value of both variables to false:

    $related_posts_query_result_cache_expiration = false; //(int) get_post_meta($post->ID, ‘_wp_rp_related_posts_query_result_cache_expiration’, true);
    $related_posts_query_result_cache = false; //get_post_meta($post->ID, ‘_wp_rp_related_posts_query_result_cache_’.$options[‘max_related_posts’], true);

    Please be aware that this is a very risky action that might significantly affect the performance of your site and the server and that we cannot take any responsibility for this changes.

    In any case, hope it goes well. And do let us know, we’re eager to hear about the results (if you choose to execute it).

    Take care & have a nice day!

    Best,
    Silvo

    Thread Starter acroplex

    (@acroplex)

    Hi Silvo, thanks for the code changes.

    Unfortunately, this isn’t what I want (to simply regenerate the same thumbnails).

    I want – for the same post – to generate different related thumbnails, because there are several thousand posts that would generate possible related posts. So if this code simply skips caching, then your plugin does not work for me.

    As I said, the one I already use performs the task rather well, and has a caching on/off switch, but visually, yours is superior.

    Perhaps, you could expand on the ‘intelligence’ of the plugin, so that for the same post – every time that it’s loaded with the cache mechanism turned off – a new set of related post thumbnails would be generated.

    silvoslaf

    (@silvoslaf)

    Hey, thanks for getting back to me, appreciate it, although I’m sad to hear that the solution provided isn’t currently the best option for you.

    We sat together once again, looked at the open possibilities, options or solutions that could somehow work for you, but in the end, nothing emerged as a clean cut, since problems would erupt either way.

    I’m really sorry to say this, but I’m afraid we just cannot help you out this time, not with the wishes you have in mind. We did our best, but that’s just the way it is. Hope you understand.

    But do let us know if you have any other questions regarding our service, or if there’s anything else that we can help you with, since we’ll do it gladly!

    Take care & have a nice day!

    Best,
    Silvo

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Caching: Any way to turn it off?’ is closed to new replies.