I am not finding the option
Wipe Cache in the recovery mode of Google Pixel 2.
can anyone tell how could i enable it if it is disabled by default and is it there in this device or not?
Your device doesn't have
/Cachepartition is not required to be as big on devices which have A/B partition catering to seamless updates since it doesn't need to store OTA updates which are done seamlessly
The cache partition is no longer used to store OTA update packages, so there is no need to ensure that the cache partition is large enough for future updates
A/B devices do not need a recovery partition or cache partition because Android no longer uses these partitions.
For non-A/B updates, the cache partition was used to store downloaded OTA packages and to stash blocks temporarily while applying updates. There was never a good way to size the cache partition: how large it needed to be depended on what updates you wanted to apply. The worst case would be a cache partition as large as the system image.
Pixel 2 like my device MiA1 follow this system and they probably decided to do away with the entire partition instead of keeping it small
/Cacheis also used by Google Play downloads as explained here What is the /cache partition?. I am assuming that is handled by
Edit: Thanks to BoLawson, who pointed out that app cache is on B partition. See APK Caching|AOSP. Note that this is only applicable for popular apps / apps on the device out of the box.