How to clear cache in Linux

Here I would like to share a script which you can use to clear your cache memory. IMPORTANT NOTICE: This is something one should not do as cache is used to speed up your work