* Description:This is simple plugin that clear all cloudfront cache if you publish posts. * Author: hideokamoto * Author URI: http://wp-kyoto.net/ * Text Domain: c3-cloudfront-clear-cache * @package c3-cloudfront-clear-cache */ if (c3_is_later_than_php_55()) { require_once dirname(__FILE__) . '/vendor/autoload.php'; } else { require_once dirname(__FILE__) . '/aws.phar'; } define('C3_PLUGIN_PATH', plugin_dir_path(__FILE__)); define('C3_PLUGIN_URL', plugin_dir_url(__FILE__)); define('C3_PLUGIN_ROOT', __FILE__); require_once dirname(__FILE__) . '/module/includes.php'; $c3 = C3_Controller::get_instance(); $c3->init(); function c3_is_later_than_php_55() { return false; if (5.5 > (double) phpversion()) { return false; } else { return true; } } class C3_Controller { private $base; private static $instance; public static function get_instance()
function __construct() { $this->C3 = C3_Controller::get_instance(); $this->C3->init(); }