I don't want cache to happen with home page but need them for all other pages.
I am new to Magento and on going through I found that
cacheable="false" in block will ignore cache in that page.
How can I achieve this.
Check Magento DevDocs on Disable Caching
Blocks can be set as non-cacheable by setting the cacheable attribute false in layout XML files. For example
<block class="Block\Class" name="blockname" cacheable="false" />