wordpress clear cache code example

Example 1: laravel artisan clear cache

//Updated Dec 2020
//laravel artisan clear cache 
php artisan view:clear 
php artisan cache:clear
php artisan route:clear
php artisan config:clear

Example 2: clear all laravel cache

/**[SAFE] Clears all cache with 1 line!**/ 
php artisan route:clear &&  
php artisan view:clear && 
php artisan config:clear &&
php artisan cache:clear && 
php artisan clear-compiled

Example 3: wordpress clear et-cache

This is a terrible side effect of using Divi and another reason I’ll never use 
it again for client websites. 

1. First, disable “Static CSS File Generation under 
Divi Options > Builder > Advanced.

2. Next, delete the ET Cache Folder either in File Manager or via FTP. 

3. Lastly, edit your wp-config.php file by adding this line: 
define(ET_BUILDER_CACHE_MODULES, false );

Tags:

Php Example