PHP code example of yannkost / craft-asset-cleaner
1. Go to this page and download the library: Download yannkost/craft-asset-cleaner 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/ */
yannkost / craft-asset-cleaner example snippets
return [
'scanWorkspacePath' => '$ASSET_CLEANER_SCAN_PATH',
];
return [
'sByDefault' => '$ASSET_CLEANER_INCLUDE_REVISIONS',
];
return [
'relationBatchSize' => 500,
'relationTimeBudgetSeconds' => 60,
];
bash
php craft asset-cleaner/diagnostics/relation-parity