I followed the steps as outlined in this tutorial to use pg_prewarm extention for pre-warming the buffer cache in PostgreSQL:
pg_prewarm
https://ismailyenigul.medium.co