• Resolved Shaolin

    (@shaolin)


    Okay, I’ve looked all over for an answer to this but no luck.

    Using Woocommerce, Elementor, and pagination for the custom product archive pages, and have been asked by the client to change pagination to Load More, which I have been testing on a staging site (FacetWp). Had to build a new grid as the old one didn’t allow it (and didn’t want to add another plugin when far too many already). Everythinng seems to work fine but…

    I’m wondering if the plugin actually caches the products after the first lot have loaded (I have it set for 25 products initially), and the Load More is clicked to load another 25 and so on. I’d assumed that when the Load More was clicked it would be treated like Page 2 and cached and would do so everytime the Load More is clicked (just like clicking pages).

    When I next visited the page after it was cached (used a different browser not logged in) I would have expected near instant loading like when pages are cached and you hit page 2, 3 etc. But not so. In fact while the initial 25 products load quickly, clicking the Load More is no faster than not having the cache on – it’s fast enough with or without, but I’m suspecting it’s not actually caching those after the intial first load.

    I had a look at View Page resource and though the page was cached those ‘extra’ products after each submission of the button weren’t listed. Server seems to show more resources used for clicking that page than the one on the live site with pagination too.

    I don’t combine any of the JS or CSS files (caused problems for me) and I have switched off ESI on the staging site (it’s on at the live one). I don’t have object cache on either. Is there a setting that should be on/off when using Load More/Infinite Scrolling pagination to make sure all on the page are cached after the initial load, or is it just a thing that caching and Load More/Infinite Scrolls don’t work together well.

    I’m about ready to tell the client he might have to stick with traditional pagination.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support qtwrk

    (@qtwrk)

    if the “more page” is loaded by ajax call , which I assume it is , as this is the most common way , the ajax call won’t be cached.

    Thread Starter Shaolin

    (@shaolin)

    Thanks for the response. Yes it’s FacetWP and uses ajax, and there doesn’t appear to be a way to have it not do so.

    If it was a small retail site it would probably be ok…from a customer POV even if those extra products are not cached it loads quickly enough BUT… it’s a busy wholesale site and he’s already had to add more CPU resources so having those extra products uncached and using extra server memory when is not an option.

    Guess I’ll have to tell him he has to stick with trad pagination if he wants all the products cached, unless he wants to pay for extra physical memory. ??

    Thanks for clearing that up for me!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Load More Pagination’ is closed to new replies.