##### How to add one.com varnish file into vcaching plugin? ## Include one.com file Add following lines: if( ! class_exists( 'OCVCaching' ) ) { include_once 'onecom-addons/onecom-inc.php'; } if( ! class_exists( 'ONECOMUPDATER' ) ) { require_once plugin_dir_path( __FILE__ ).'/onecom-addons/inc/update.php'; } Where? vcaching.php, below to "$vcaching = new VCachingOC();" =============== ## Add filters Add following lines: $purgeme = apply_filters( 'ocvc_purge_url', $url, $path, $pregex ); $headers = apply_filters( 'ocvc_purge_headers', $url, $headers ); Where? vcaching.php, in "purge_url()" function, just before "wp_remote_request" for purge =============== ## Add filter Add following line: apply_filters( 'ocvc_purge_notices', $response, $purgeme ); Where? vcaching.php, in "purge_url()" function, just after "wp_remote_request" for purge =============== ## Stop admin notice from main file Add below line: return; Where? vcaching.php 1) Begining of "function purge_message()" 2) Begining of "function purge_post_page()" =============== ## Permalink message filter Replace all with below lines: $message = '
' . __('Varnish Caching requires you to use custom permalinks. Please go to the Permalinks Options Page to configure them.', $this->plugin) . '