wp-ffpc/wp-ffpc.php

72 lines
2.1 KiB
PHP
Raw Permalink Normal View History

<?php
/*
Plugin Name: WP-FFPC
2014-08-22 11:55:25 +01:00
Plugin URI: https://github.com/petermolnar/wp-ffpc
Description: WordPress in-memory full page cache plugin
2017-02-11 00:11:35 +00:00
Version: 1.11.2
Author: Peter Molnar <hello@petermolnar.eu>
2017-02-10 21:32:34 +00:00
Author URI: http://petermolnar.net/
License: GPLv3
Text Domain: wp-ffpc
Domain Path: /languages/
*/
2017-02-10 21:32:34 +00:00
/*Copyright 2010-2017 Peter Molnar ( hello@petermolnar.eu )
2017-02-10 21:32:34 +00:00
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 3, as
published by the Free Software Foundation.
2017-02-10 21:32:34 +00:00
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
GNU General Public License for more details.
2017-02-10 21:32:34 +00:00
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA02110-1301USA
*/
2016-01-15 20:18:18 +00:00
defined('ABSPATH') or die("Walk away.");
include_once ( 'wp-ffpc-class.php' );
2017-02-10 21:32:34 +00:00
$wp_ffpc_defaults= array (
'hosts' => '127.0.0.1:11211',
'memcached_binary' => false,
'authpass' => '',
'authuser' => '',
'browsercache' => 0,
'browsercache_home' => 0,
'browsercache_taxonomy' => 0,
'expire' => 300,
'expire_home' => 300,
'expire_taxonomy' => 300,
'invalidation_method' => 0,
'prefix_meta' => 'meta-',
'prefix_data' => 'data-',
'charset' => 'utf-8',
'log' => true,
'cache_type' => 'memcached',
'cache_loggedin' => false,
'nocache_home' => false,
'nocache_feed' => false,
'nocache_archive' => false,
'nocache_single' => false,
'nocache_page' => false,
'nocache_cookies' => false,
'nocache_dyn' => true,
'nocache_woocommerce' => true,
'nocache_woocommerce_url' => '',
'nocache_url' => '^/wp-',
'nocache_comment' => '',
'response_header' => false,
'generate_time' => false,
'precache_schedule' => 'null',
'key' => '$scheme://$host$request_uri',
'comments_invalidate' => true,
'pingback_header' => false,
'hashkey' => false,
);
2017-02-11 00:11:35 +00:00
$wp_ffpc= new WP_FFPC ( 'wp-ffpc', '1.11.2', 'WP-FFPC', $wp_ffpc_defaults );