how to create static pages from dynamic content?
Hi,
On the front page of my website, https://knit-to-wear.com, I display a list of Woocommerce products randomly chosen out of a category that I set for the block on the front page. This way, I can choose a different category for each month, season, etc and display the products in the category randomly helps to change the look of the front page each time the front page is loaded for visitors.
The issue with the approach above is that the load speed of the page is affected since the page needs to extract products(images) from the database each time it needs to be loaded. At least tens of milliseconds or sometimes around a second depending on the conditions of the server hosted with my hosting provider.
So, I'm checking in to see if there's a way for me to create a static page in such a way from a database and display the extracted products(images) in a random manner. This will help me to improve the page load speed significantly.
Hope you'll get me a solution for this new year.
// Yungjoo
-
Hi Yungjoo,
While you can't create static pages with the dynamic data, you can use object caching to achieve a similar result. Please have a look at this article from Astra CEO Sujay. https://wpastra.com/guides-and-tutorials/wordpress-object-caching/ You could try installing Redis Object Caching plugin.
Some hosting companies provide these options as part of their hosting packages as well. For example, SIteGround offers Dynamic caching
0
Please sign in to leave a comment.
Comments
1 comment