PHP code example of aerni / dynamic-cache

1. Go to this page and download the library: Download aerni/dynamic-cache 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/ */

    

aerni / dynamic-cache example snippets


return [

    /*
    |--------------------------------------------------------------------------
    | Field Handle
    |--------------------------------------------------------------------------
    |
    | Define the name of the field handle you would like to use.
    | Default: 'exclude_from_static_cache'
    |
    */

    'handle' => 'exclude_from_static_cache',

];

'paths' => [
    config_path('statamic'),
    storage_path('statamic/addons/dynamic-cache'),
]
bash
php please vendor:publish --tag=dynamic-cache-config
bash
php artisan dynamic-cache:update