Skip to content

Instantly share code, notes, and snippets.

@hideokamoto
Last active April 26, 2016 04:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hideokamoto/54fbdce07f80cdfb8b36d739db4aa681 to your computer and use it in GitHub Desktop.
Save hideokamoto/54fbdce07f80cdfb8b36d739db4aa681 to your computer and use it in GitHub Desktop.
C3 CloudFront Clear Cacheで全キャッシュを削除する仕様にしたい場合
<?php
/*
Plugin Name: C3 All Cache Clear
Version: 0.0.1
Plugin URI: https://github.com/megumiteam/
Description: Overwrite invalidation path for clear all item's cache
License: GPLv3 or later
*/
add_filter( 'c3_invalidation_items', function($items, $post){
return array('/*');
}, 999, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment