Remove all cached data using a single statement

on this forum lot of people calling controller methods in rake task to
remove cache some one trying to remove directories to and sub
directories for removing cached content…

this statement can be used as cron job “rake tmp:cache:clear” this
statement will remove all cached content of any type of rails cache like
fragment, action,page caching.