Exclude Urls by Calling the Function Hook

It is very simple to exclude any url from the cache. You can call the following function in a theme or a plugin file to exclude current page.