init(); } if (wp_recache_is_cache_enabled()) { require_once WP_RECACHE_INC_PATH . 'Cache/WPCache.php'; $cache = new WP_Recache_WPCache(); $cache->init(); } add_action('wp_enqueue_scripts', 'wp_recache_enqueue_admin_bar_script'); } /** * Plugin activation. */ function wp_recache_activate() { require_once WP_RECACHE_INC_PATH . 'Activator.php'; WP_Recache_Activator::activate(); } register_activation_hook(__FILE__, 'wp_recache_activate'); /** * Plugin deactivation. */ function wp_recache_deactivate() { require_once WP_RECACHE_INC_PATH . 'Activator.php'; require_once WP_RECACHE_INC_PATH . 'Deactivator.php'; WP_Recache_Deactivator::deactivate(); } register_deactivation_hook(__FILE__, 'wp_recache_deactivate'); add_action('plugins_loaded', 'wp_recache_init');