android studio clear cache code example

Example 1: laravel clear cache

php artisan cache:clear
php artisan route:clear
php artisan config:clear 
php artisan view:clear

Example 2: how to clear cache of gradle

gradlew cleanBuildCache

Example 3: how to remove gradle cache and temp files

gradlew cleanBuildCache

Example 4: cordova delete cache

// download this plugin. it reset cache on internal browser
cordova plugin add https://github.com/moderna/cordova-plugin-cache.git

// use this function in index.js or on main html
document.addEventListener('deviceready', onDeviceReady);
function onDeviceReady()
{
    var success = function(status) {
        alert('Message: ' + status);
    }

    var error = function(status) {
        alert('Error: ' + status);
    }

    window.cache.clear( success, error );
}

Example 5: how to clear gradle cache gitignore

git rm -r --cached .idea/

Tags:

Php Example