Hugo build cache not implemented properly

I am building an hugo site with vercel. but the cache fodler which is the “resources/_gen*” directory is not getting cached. The framework presets also does not list the hugo cache path. This is leading to longer build times.

Project getting build: GitHub - nipun24/portfolio: Personal portfolio and blog website

On my local system the build takes 13 seconds without the cache and with cache takes 150ms.

I have tried uploading the cache folder to git and test the build. This sped up the build which tells me that the cache is not implemented properly for hugo