@cached ?
No need for rest of the function to be cached - there is no request anyway.
+1
Pull-Request has been merged by lholecek