Auto clear cache of app for web view auto update

Hello Everybody v

plz tell me how we auto clear cache … when we close our app … so that web view auto update our content

and also plz tell us where we use these block for auto clear cache

Is this block are Right for maine screen ?

absolutely not. This block is used for clear local database of your app.