Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #295392

    Hey Guys

    W3Total Cache is breaking my website. I can’t figure out what is causing the conflict.
    If you check out my site, you will see that the home page full width slider is broken (should have a video streaming)
    Some icons have disappeared, others are much smaller and my blog slider at the bottom isn’t working.

    Any suggestions as to what is causing this? Of course if i empty cahces it works fine. It works for about 8 hours, so it is hard to
    test each js or css to see what is breaking it.

    Other than this issue with it breaking, I am getting Page Speed 94% and YSlow 90%

    #295532

    Hey ghodson!

    I can’t tell you which script breaks the w3tc plugin but I can provide the configuration which is used on my websites (with Enfold). The config data can be found in wp-content/w3tc-config/master.php

    
    return array(
    	'version' => '0.9.4',
    	'common.instance_id' => XXXX,
    	'pgcache.enabled' => true,
    	'pgcache.engine' => 'file_generic',
    	'minify.enabled' => true,
    	'minify.auto' => false,
    	'minify.engine' => 'file',
    	'minify.html.engine' => 'html',
    	'minify.js.engine' => 'js',
    	'minify.css.engine' => 'css',
    	'dbcache.enabled' => true,
    	'dbcache.engine' => 'file',
    	'objectcache.enabled' => false,
    	'objectcache.engine' => 'file',
    	'browsercache.enabled' => true,
    	'cdn.enabled' => false,
    	'cdn.engine' => 'ftp',
    	'varnish.enabled' => false,
    	'varnish.servers' => array(
    		0 => '',
    	),
    	'newrelic.enabled' => false,
    	'newrelic.api_key' => '',
    	'newrelic.account_id' => '',
    	'newrelic.appname' => '',
    	'newrelic.application_id' => 0,
    	'widget.pagespeed.enabled' => true,
    	'widget.pagespeed.key' => '',
    	'config.check' => true,
    	'pgcache.file.nfs' => false,
    	'minify.file.nfs' => false,
    	'dbcache.file.locking' => false,
    	'objectcache.file.locking' => false,
    	'pgcache.file.locking' => false,
    	'minify.file.locking' => false,
    	'minify.rewrite' => true,
    	'minify.reject.logged' => true,
    	'minify.html.enable' => true,
    	'minify.html.inline.css' => true,
    	'minify.html.inline.js' => false,
    	'minify.html.reject.feed' => true,
    	'minify.html.strip.crlf' => true,
    	'minify.html.comments.ignore' => array(
    		0 => 'google_ad_',
    		1 => 'RSPEAK_',
    	),
    	'minify.js.enable' => true,
    	'minify.js.combine.header' => false,
    	'minify.js.header.embed_type' => 'blocking',
    	'minify.js.strip.comments' => false,
    	'minify.js.strip.crlf' => false,
    	'minify.css.enable' => true,
    	'minify.css.combine' => false,
    	'minify.css.strip.comments' => false,
    	'minify.css.strip.crlf' => true,
    	'minify.css.imports' => '',
    	'minify.lifetime' => 86400,
    	'minify.file.gc' => 86400,
    	'minify.reject.uri' => array(
    		0 => '',
    	),
    	'minify.reject.files.js' => array(
    		0 => '',
    	),
    	'minify.reject.files.css' => array(
    		0 => '',
    	),
    	'minify.reject.ua' => array(
    		0 => '',
    	),
    	'minify.cache.files' => array(
    		0 => 'https://ajax.googleapis.com',
    	),
    	'notes.need_empty_minify' => false,
    	'browsercache.timestamp' => '1405783478',
    	'browsercache.no404wp' => false,
    	'browsercache.no404wp.exceptions' => array(
    		0 => 'robots\\.txt',
    		1 => '[a-z0-9_\\-]*sitemap[a-z0-9_\\-]*\\.(xml|xsl|html)(\\.gz)?',
    	),
    	'browsercache.cssjs.last_modified' => true,
    	'browsercache.cssjs.expires' => true,
    	'browsercache.cssjs.lifetime' => 31536000,
    	'browsercache.cssjs.cache.control' => false,
    	'browsercache.cssjs.cache.policy' => 'cache_public_maxage',
    	'browsercache.cssjs.etag' => false,
    	'browsercache.cssjs.w3tc' => false,
    	'browsercache.cssjs.compression' => true,
    	'browsercache.cssjs.replace' => false,
    	'browsercache.cssjs.nocookies' => false,
    	'browsercache.html.last_modified' => true,
    	'browsercache.html.expires' => true,
    	'browsercache.html.lifetime' => 3600,
    	'browsercache.html.cache.control' => false,
    	'browsercache.html.cache.policy' => 'cache_public_maxage',
    	'browsercache.html.etag' => false,
    	'browsercache.html.w3tc' => false,
    	'browsercache.html.compression' => true,
    	'browsercache.other.last_modified' => true,
    	'browsercache.other.expires' => true,
    	'browsercache.other.lifetime' => 31536000,
    	'browsercache.other.cache.control' => false,
    	'browsercache.other.cache.policy' => 'cache_public_maxage',
    	'browsercache.other.etag' => false,
    	'browsercache.other.w3tc' => false,
    	'browsercache.other.compression' => true,
    	'browsercache.other.replace' => false,
    	'browsercache.other.nocookies' => false,
    	'notes.plugins_updated' => false,
    	'notes.support_us' => false,
    	'pgcache.late_init' => false,
    	'minify.debug' => false,
    	'notes.need_empty_pgcache' => false,
    	'pgcache.debug' => false,
    	'dbcache.debug' => false,
    	'dbcache.reject.logged' => true,
    	'dbcache.lifetime' => 180,
    	'dbcache.file.gc' => 3600,
    	'dbcache.reject.uri' => array(
    		0 => '',
    	),
    	'dbcache.reject.sql' => array(
    		0 => 'gdsr_',
    		1 => 'wp_rg_',
    		2 => '_wc_session_',
    	),
    	'dbcache.reject.words' => array(
    		0 => '^\\s*insert\\b',
    		1 => '^\\s*delete\\b',
    		2 => '^\\s*update\\b',
    		3 => '^\\s*replace\\b',
    		4 => '^\\s*create\\b',
    		5 => '^\\s*alter\\b',
    		6 => '^\\s*show\\b',
    		7 => '^\\s*set\\b',
    		8 => '\\bautoload\\s+=\\s+\'yes\'',
    		9 => '\\bsql_calc_found_rows\\b',
    		10 => '\\bfound_rows\\(\\)',
    		11 => '\\bw3tc_request_data\\b',
    	),
    	'plugin.type' => '',
    	'fragmentcache.enabled' => false,
    	'fragmentcache.engine' => 'file',
    	'cluster.messagebus.enabled' => false,
    	'cluster.messagebus.sns.region' => '',
    	'cluster.messagebus.sns.api_key' => '',
    	'cluster.messagebus.sns.api_secret' => '',
    	'plugin.license_key' => '',
    	'minify.js.combine.body' => false,
    	'minify.js.body.embed_type' => 'blocking',
    	'minify.js.combine.footer' => false,
    	'minify.js.footer.embed_type' => 'blocking',
    	'minify.js.groups' => array(
    		'7c169' => array(
    			'default' => array(
    				'include' => array(
    					'files' => array(
    						0 => 'wp-includes/js/jquery/jquery.js',
    						1 => 'wp-includes/js/jquery/jquery-migrate.min.js',
    						5 => 'wp-content/themes/enfold/js/avia-compat.js',
    						6 => 'wp-includes/js/comment-reply.min.js',
    						12 => 'wp-content/themes/enfold/js/avia.js',
    						13 => 'wp-content/themes/enfold/js/shortcodes.js',
    					),
    				),
    				'include-footer' => array(
    					'files' => array(
    						0 => 'wp-content/themes/enfold/config-woocommerce/woocommerce-mod.js',
    						2 => 'wp-includes/js/jquery/ui/jquery.ui.core.min.js',
    					),
    				),
    			),
    		),
    	),
    	'minify.css.groups' => array(
    		'7c169' => array(
    			'default' => array(
    				'include' => array(
    					'files' => array(
    						3 => 'wp-content/themes/enfold/config-woocommerce/woocommerce-mod.css',
    						4 => 'wp-content/themes/enfold/css/base.css',
    						5 => 'wp-content/themes/enfold/css/layout.css',
    						6 => 'wp-content/themes/enfold/css/shortcodes.css',
    						7 => 'wp-content/themes/enfold/js/mediaelement/skin-1/mediaelementplayer.css',
    						8 => 'wp-content/uploads/dynamic_avia/enfold.css',
    					),
    				),
    			),
    		),
    	),
    	'pgcache.accept.uri' => array(
    		0 => 'sitemap(_index)?\\.xml(\\.gz)?',
    		1 => '([a-z0-9_\\-]+)?sitemap\\.xsl',
    		2 => '[a-z0-9_\\-]+-sitemap([0-9]+)?\\.xml(\\.gz)?',
    	),
    	'cdn.theme.files' => '*.css;*.js;*.gif;*.png;*.jpg;*.ico;*.ttf;*.otf,*.woff,*.less',
    	'mobile.rgroups' => array(
    		'high' => array(
    			'theme' => '',
    			'enabled' => false,
    			'redirect' => '',
    			'agents' => array(
    				0 => 'acer\\ s100',
    				1 => 'android',
    				2 => 'archos5',
    				3 => 'bada',
    				4 => 'bb10',
    				5 => 'blackberry9500',
    				6 => 'blackberry9530',
    				7 => 'blackberry9550',
    				8 => 'blackberry\\ 9800',
    				9 => 'cupcake',
    				10 => 'docomo\\ ht\\-03a',
    				11 => 'dream',
    				12 => 'froyo',
    				13 => 'googlebot-mobile',
    				14 => 'htc\\ hero',
    				15 => 'htc\\ magic',
    				16 => 'htc_dream',
    				17 => 'htc_magic',
    				18 => 'iemobile/7.0',
    				19 => 'incognito',
    				20 => 'ipad',
    				21 => 'iphone',
    				22 => 'ipod',
    				23 => 'kindle',
    				24 => 'lg\\-gw620',
    				25 => 'liquid\\ build',
    				26 => 'maemo',
    				27 => 'mot\\-mb200',
    				28 => 'mot\\-mb300',
    				29 => 'nexus\\ one',
    				30 => 'nexus\\ 7',
    				31 => 'opera\\ mini',
    				32 => 's8000',
    				33 => 'samsung\\-s8000',
    				34 => 'series60.*webkit',
    				35 => 'series60/5\\.0',
    				36 => 'sonyericssone10',
    				37 => 'sonyericssonu20',
    				38 => 'sonyericssonx10',
    				39 => 't\\-mobile\\ mytouch\\ 3g',
    				40 => 't\\-mobile\\ opal',
    				41 => 'tattoo',
    				42 => 'touch',
    				43 => 'webmate',
    				44 => 'webos',
    			),
    		),
    		'low' => array(
    			'theme' => '',
    			'enabled' => false,
    			'redirect' => '',
    			'agents' => array(
    				0 => '2\\.0\\ mmp',
    				1 => '240x320',
    				2 => 'alcatel',
    				3 => 'amoi',
    				4 => 'asus',
    				5 => 'au\\-mic',
    				6 => 'audiovox',
    				7 => 'avantgo',
    				8 => 'benq',
    				9 => 'bird',
    				10 => 'blackberry',
    				11 => 'blazer',
    				12 => 'cdm',
    				13 => 'cellphone',
    				14 => 'danger',
    				15 => 'ddipocket',
    				16 => 'docomo',
    				17 => 'dopod',
    				18 => 'elaine/3\\.0',
    				19 => 'ericsson',
    				20 => 'eudoraweb',
    				21 => 'fly',
    				22 => 'haier',
    				23 => 'hiptop',
    				24 => 'hp\\.ipaq',
    				25 => 'htc',
    				26 => 'huawei',
    				27 => 'i\\-mobile',
    				28 => 'iemobile',
    				29 => 'iemobile/7',
    				30 => 'iemobile/9',
    				31 => 'j\\-phone',
    				32 => 'kddi',
    				33 => 'konka',
    				34 => 'kwc',
    				35 => 'kyocera/wx310k',
    				36 => 'lenovo',
    				37 => 'lg',
    				38 => 'lg/u990',
    				39 => 'lge\\ vx',
    				40 => 'midp',
    				41 => 'midp\\-2\\.0',
    				42 => 'mmef20',
    				43 => 'mmp',
    				44 => 'mobilephone',
    				45 => 'mot\\-v',
    				46 => 'motorola',
    				47 => 'msie\\ 10\\.0',
    				48 => 'netfront',
    				49 => 'newgen',
    				50 => 'newt',
    				51 => 'nintendo\\ ds',
    				52 => 'nintendo\\ wii',
    				53 => 'nitro',
    				54 => 'nokia',
    				55 => 'novarra',
    				56 => 'o2',
    				57 => 'openweb',
    				58 => 'opera\\ mobi',
    				59 => 'opera\\.mobi',
    				60 => 'p160u',
    				61 => 'palm',
    				62 => 'panasonic',
    				63 => 'pantech',
    				64 => 'pdxgw',
    				65 => 'pg',
    				66 => 'philips',
    				67 => 'phone',
    				68 => 'playbook',
    				69 => 'playstation\\ portable',
    				70 => 'portalmmm',
    				71 => '\\bppc\\b',
    				72 => 'proxinet',
    				73 => 'psp',
    				74 => 'qtek',
    				75 => 'sagem',
    				76 => 'samsung',
    				77 => 'sanyo',
    				78 => 'sch',
    				79 => 'sch\\-i800',
    				80 => 'sec',
    				81 => 'sendo',
    				82 => 'sgh',
    				83 => 'sharp',
    				84 => 'sharp\\-tq\\-gx10',
    				85 => 'small',
    				86 => 'smartphone',
    				87 => 'softbank',
    				88 => 'sonyericsson',
    				89 => 'sph',
    				90 => 'symbian',
    				91 => 'symbian\\ os',
    				92 => 'symbianos',
    				93 => 'toshiba',
    				94 => 'treo',
    				95 => 'ts21i\\-10',
    				96 => 'up\\.browser',
    				97 => 'up\\.link',
    				98 => 'uts',
    				99 => 'vertu',
    				100 => 'vodafone',
    				101 => 'wap',
    				102 => 'willcome',
    				103 => 'windows\\ ce',
    				104 => 'windows\\.ce',
    				105 => 'winwap',
    				106 => 'xda',
    				107 => 'xoom',
    				108 => 'zte',
    			),
    		),
    	),
    	'extensions.active' => array(
    		'wordpress-seo' => 'w3-total-cache/extensions/WordPressSEO.php',
    	),
    	'pgcache.prime.enabled' => true,
    	'pgcache.prime.sitemap' => '/sitemap_index.xml',
    	'fragmentcache.debug' => false,
    );
    

    If W3TC doesn’t work for you try these plugins instead: https://wordpress.org/plugins/bwp-minify/ and https://wordpress.org/plugins/wp-super-cache/

    Best regards,
    Peter

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.