PHP code example of hkyss / evocms-tune

1. Go to this page and download the library: Download hkyss/evocms-tune 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/ */

    

hkyss / evocms-tune example snippets


return [
    'connection' => env('TUNE_CONNECTION'),
    'tier' => env('TUNE_TIER', 'core'),
    'prune' => [
        'event_log' => ['column' => 'createdon', 'days' => 90],
        'manager_log' => ['column' => 'timestamp', 'days' => 180],
    ],
    'prune_batch' => 5000,
];
bash
php artisan db:doctor
php artisan db:tune --dry-run
php artisan db:tune
php artisan db:untune
bash
cd core
php artisan package:install
bash
php artisan db:doctor --tier=extended
php artisan db:tune --tier=aggressive --allow-rebuild
bash
php artisan db:tune --only=site_content_closure
php artisan db:doctor --only=tmplvar_contentvalues.pair
bash
php artisan db:untune --dry-run
php artisan db:untune --only=site_content
php artisan db:untune
bash
php artisan db:prune --dry-run
php artisan db:prune --days=30 --table=manager_log
bash
php artisan vendor:publish --tag=tune-config