How to cache block htmls to get the html and stitch them together?

Posted in: Newspaper
Post count: 8

Our blog is mostly updated once a day and stay the same for the rest of the day. So we are doing caching at the edge using Cloudflare, even then we are removing the cache for page updates, even though the page may not be impacted as it could show the related posts for a post which is older.

I have created a Page with Builder where I placed set of blocks on top, left, right, footer. Is there any way I can call the respective blocks and get html via admin-ajax.php? I can get it via ajax pagination for few blocks, is there a way I can get the documentation to call my self where I can customize, cache and render.

I am planning to do that in Cloudflare worker to cache parts of the page and dynamically render ony certain part.

Please advise
Thanks

Post count: 35449

Hi,
I’m not sure that I understand what do you want to achieve, but if you publish/update the website only once per day and you want to have a cache on your flex blocks, then you can use this option – https://forum.tagdiv.com/use-flex-blocks-cache-option/
I hope this will help you!

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.