• Dear ALM Plugin Team,

    I hope this message finds you well. We are avid users of the Ajax Load More (ALM) plugin for WordPress and have found it to be an invaluable tool for enhancing the performance and user experience of our website. We appreciate the hard work and dedication that your team has put into developing and maintaining this plugin.

    We recently encountered a performance optimization opportunity that we believe could benefit all users of the ALM plugin. Currently, when preloaded posts are fetched, they are generated on each request, adding unnecessary load to our server – we have over 100k posts and a lot of categories, taxonomies, etc. Please see this screenshot for reference – https://i.imgur.com/byiM3Qk.png. We would like to propose the addition of a caching option for preloaded results within the plugin.

    Our suggestion is to introduce an option that allows users to cache the preloaded results, either in JSON format or using WordPress transients. Caching preloaded results would significantly reduce server load and improve the overall loading speed of our pages, especially for users who frequently access pages with ALM-powered content.

    Here is a brief overview of how this caching option could work:

    1. Users could enable or disable the caching feature via the ALM plugin settings.
    2. When enabled, the plugin would cache the preloaded results, either as JSON files or using WordPress transients, based on user preference.
    3. Cached results would be retrieved from the cache rather than regenerated on each request, reducing server load and improving page load times.
    4. Users could set the cache expiration time, allowing them to control how long the cached results are stored.

    By implementing this caching feature, the ALM plugin can further enhance its performance optimization capabilities and provide users with a valuable tool for speeding up their websites.

    We understand that you may have a roadmap for future plugin updates, and we kindly request that you consider adding this caching option in a future release. We believe that it would be a valuable addition to the plugin and greatly appreciated by the ALM community.

    If you require any additional information or have any questions about this feature request, please feel free to reach out to us. We are more than willing to assist in any way we can to make this enhancement a reality.

    Thank you for your time and attention to this suggestion. We look forward to the continued development of the Ajax Load More plugin and appreciate your commitment to providing top-notch solutions for WordPress users.

    Best regards,
    Vladislav Abrashev
    DevriX Ltd.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Darren Cooney

    (@dcooney)

    Hi @vabrashev Thanks for the thoughtful feature request.

    Question, have you seen the Cache add-on? I’m wondering if it would do what you need. It current saves each ajax request as JSON and retrieves the JSON data vs a DB query (assuming the cache has been created).
    https://connekthq.com/plugins/ajax-load-more/add-ons/cache/

    Let me know either way.

    Thread Starter Vladislav Abrashev

    (@vabrashev)

    Hi @dcooney ,

    Thank you for your prompt response and for pointing us to the Cache add-on. We appreciate your attention to our feature request.

    We have indeed explored and are using the Cache add-on you mentioned, which is a valuable tool for caching Ajax requests and reducing database queries. However, our current use case involves caching the preloaded results specifically.

    To provide more context, we are using the ALM plugin (with the cache add-on) with the following shortcode configuration:
    echo do_shortcode( '[ajax_load_more cache="true" cache_id="5204982256" preloaded="true" preloaded_amount="9" repeater="template_3" post_type="post" category__not_in="43600,43370,50964,54985,58447,95938" post__not_in="' . $alm_post__not_in . '" posts_per_page="15" pause="true" scroll="false" button_label="View More"]' );

    While the Cache add-on is excellent for caching Ajax requests, it does not address the specific need we have to cache the preloaded results generated by the ALM plugin. We aim to reduce server load and enhance the page loading speed by caching these preloaded results.

    We believe that implementing a caching option for preloaded results, as described in our initial feature request, would further complement the capabilities of the ALM plugin and benefit users like us who utilize preloading extensively.

    Best regards,
    Vladislav Abrashev

    Plugin Author Darren Cooney

    (@dcooney)

    Preloaded posts should be cached via object cache on the server or another WP cache plugin.

    Thread Starter Vladislav Abrashev

    (@vabrashev)

    Thanks for your suggestions regarding caching solutions for the ALM plugin.

    While we understand that preloaded posts should ideally be cached by the object cache, we’ve been in touch with our hosting company once again to investigate the caching setup. The hosting company has reported that the query with the most significant impact on our RDS (Relational Database Service) usage is the one originating from the preloaded.php file. We are currently working with them to verify that this specific query is indeed being cached.

    However, we’d like to emphasize that this situation does not diminish the importance of the feature suggestion we’ve made earlier. It would be highly beneficial for the plugin’s user community to have the option to cache the preloaded results directly within the ALM plugin. This feature would provide users with greater control and flexibility over their caching strategies and could potentially reduce the load on the database server further.

    We kindly request that you consider adding this feature to a future release of the ALM plugin. Such an addition would not only enhance the plugin’s performance but also contribute to a more efficient and streamlined user experience.

    Best,

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Feature Request – Add Caching Option for Preloaded Results’ is closed to new replies.