PHP code example of dpc-sdp / tide_marina
1. Go to this page and download the library: Download dpc-sdp/tide_marina 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/ */
dpc-sdp / tide_marina example snippets
$config['purge_purger_http.settings.marina_cf_cachetags']['path'] =
sprintf('/prod/cache-invalidation/%s/%s', 'my-project', getenv('MARINA_ENVIRONMENT'));
sh
drush en marina_cf_cachetags
sh
aws cloudfront create-invalidation --distribution-id <id> \
--paths "#$(php -r 'echo substr(hash("xxh3", "node:203"), 0, 6);')"