PHP code example of mmoreram / cache-flush-bundle

1. Go to this page and download the library: Download mmoreram/cache-flush-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mmoreram / cache-flush-bundle example snippets

 php
$this
    ->container
    ->get('cache_flusher')
    ->flushCache()
 php
$myOtherKernel = //
$this
    ->container
    ->get('cache_flusher')
    ->flushCache($myOtherKernel)