function drush_pcb_permanent_cache_bin_flush_all in Permanent Cache Bin 8.2
Same name and namespace in other branches
- 8 pcb.drush.inc \drush_pcb_permanent_cache_bin_flush_all()
Implements drush permanent cache bin flush all command.
File
- ./
pcb.drush.inc, line 65 - Provides drush commands for pcb.
Code
function drush_pcb_permanent_cache_bin_flush_all() {
foreach (Cache::getBins() as $bin => $backend) {
if (method_exists($backend, 'deleteAllPermanent')) {
$backend
->deleteAllPermanent();
drush_print(dt('Flushed all cache for @bin.', [
'@bin' => $bin,
]));
}
}
}