Quantcast
Channel: WordPress.org Forums » [W3 Total Cache] Support
Viewing all 19297 articles
Browse latest View live

almooj-craig on "[Plugin: W3 Total Cache] Prefer .gz instead of .gzip"

$
0
0

Pothi,

Thanks for the reply. I took a look at the page cache and it uses _gzip so I thought I would implement that through nginx along with using the W3 method of using rewrite to serve out the .gzip version. The page_enhanced cache method is quite clever because it uses parameters that are available so that you can rewrite without even using php.

Here is the Nginx conf just in case someone finds it useful. For now Nginx is serving out page and minimize files and in gzip if the browser supports it.

server
{
	server_name www.mydomain.com;
	listen 8080;
	root /your/root/htdocs;
	charset utf-8;

	# BEGIN W3TC Page Cache core
	set $w3tc_rewrite 1;
	if ($request_method = POST) {
		set $w3tc_rewrite 0;
	}
	if ($query_string != "") {
		set $w3tc_rewrite 0;
	}
	#if ($http_cookie ~* "comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_swit")
	if ($http_cookie ~* "comment_author|wp\-postpass|wordpress_logged_in|wptouch_swit")
	{
		set $w3tc_rewrite 0;
	}
	set $w3tc_enc "";
	if ($http_accept_encoding ~ gzip)
	{
		set $w3tc_enc _gzip;
	}
	set $w3tc_ext "";
	if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index.html$w3tc_enc" )
	{
		set $w3tc_ext .html;
	}

	if (-f "$document_root/wp-content/cache/page_enhanced/$http_host/$request_uri/_index.xml$w3tc_enc")
	{
		set $w3tc_ext .xml;
	}
	if ($w3tc_ext = "") {
	  set $w3tc_rewrite 0;
	}
	if ($w3tc_rewrite = 1)
	{
		rewrite .* "/wp-content/cache/page_enhanced/$http_host/$request_uri/_index$w3tc_ext$w3tc_enc";
	}
	location ~ /wp-content/cache/page_enhanced.*html$ {
		expires modified 86400s;
		add_header X-Cached "W3TC";
		add_header Vary "Accept-Encoding, Cookie";
		add_header Pragma "public";
		add_header Cache-Control "max-age=86400, public";
	}
	location ~ /wp-content/cache/page_enhanced.*gzip$ {
		gzip off;
		types {}
		default_type text/html;
		expires modified 86400s;
		add_header X-Cached 'W3TC';
		add_header Vary 'Accept-Encoding, Cookie';
		add_header Pragma 'public';
		add_header Cache-Control 'max-age=86400, public';
		add_header Content-Encoding gzip;
	}
	# END W3TC Page Cache core

	# START W3TC Minify
	#rewrite ^/wp-content/cache/minify.*/w3tc_rewrite_test$ /wp-content/plugins/w3-total-cache/pub/minify.php
	location ~*
	^.+.(js|css)$
	{
		try_files $uri @apachesite;
	}

	set $w3tc_enc "";
	if ($http_accept_encoding ~ gzip) {
		set $w3tc_enc .gzip;
	}
	#try_files $uri @apachesite;

	if (-f $request_filename$w3tc_enc) {
		rewrite (.*) $1$w3tc_enc break;
	}
	#rewrite ^/wp-content/cache/minify/(.+\.(css|js))$ /wp-content/plugins/w3-total-cache/pub/minify.ph$

	location ~ /wp-content/cache/minify.*\.js$ {
		types {}
		default_type application/x-javascript;
		expires 1y;
		add_header X-Cached 'W3TC';
		add_header Vary "Accept-Encoding";
		add_header Pragma "public";
		#add_header Cache-Control "max-age=604800, public";
		add_header Cache-Control "public";
	}
	location ~ /wp-content/cache/minify.*\.css$ {
		types {}
		default_type text/css;
		expires 1y;
		add_header X-Cached 'W3TC';
		add_header Vary "Accept-Encoding";
		add_header Pragma "public";
		#add_header Cache-Control "max-age=604800, public";
		add_header Cache-Control "public";
	}
	location ~ /wp-content/cache/minify.*js\.gzip$ {
		gzip off;
		types {}
		default_type application/x-javascript;
		expires 1y;
		#expires modified 604800s;
		add_header X-Cached 'W3TC';
		add_header Vary "Accept-Encoding";
		add_header Pragma "public";
		#add_header Cache-Control "max-age=604800, public";
		add_header Cache-Control "public";
		add_header Content-Encoding gzip;
	}
	location ~ /wp-content/cache/minify.*css\.gzip$ {
		gzip off;
		types {}
		default_type text/css;
		expires 1y;
		add_header X-Cached 'W3TC';
		add_header Vary "Accept-Encoding";
		add_header Pragma "public";
		#add_header Cache-Control "max-age=604800, public";
		add_header Cache-Control "public";
		add_header Content-Encoding gzip;
	}
	location @apachesite{
		access_log off;
		add_header Server Apache/2;
		proxy_set_header X-Real-IP  $remote_addr;
		proxy_set_header X-Forwarded-For  $remote_addr;
		proxy_set_header Host $host;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_pass http://xxx.xxx.x.xx:80;
	}
	# END W3TC Minify

	location ~*
	^.+.(jpg|png|gif|pdf|flv|swf|ico|txt|cur|ico)$
	{
		try_files $uri @apachesite;
		gzip on;
		gzip_static on;
		access_log off;
		expires 1y;
	}
	location / {
		access_log off;
		add_header Server Apache/2;
		proxy_set_header X-Real-IP  $remote_addr;
		proxy_set_header X-Forwarded-For  $remote_addr;
		proxy_set_header Host $host;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
		proxy_pass http://xxx.xxx.x.xx:80;
	}
}	

	server {
		server_name ywca-blog.smywca.org *.ywca-blog.smywca.org *.ywca-blog.smywca.com *.ywca-blog.thescollards.com;
		listen 8080;
		root /www/ywca/blog/htdocs;
		location ~*
		^.+.(jpg|png|gif|js|css|pdf|flv|swf|ico|txt|cur)$
		{
			gzip on;
			gzip_static on;
			access_log off;
			expires 1y;
		}
		location / {
			access_log off;
			add_header Server Apache/2;
			proxy_set_header X-Real-IP  $remote_addr;
			proxy_set_header X-Forwarded-For  $remote_addr;
			proxy_set_header Host $host;
			proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
			proxy_pass http://xxx.xxx.x.xx:80;
		}
	}

Most likely in the future I will just let Apache serve out the page cached files so that I can track them in the Apache server logs.

Craig


roam92 on "[Plugin: W3 Total Cache] Beware, don't update to 0.93, found massive issue in the generated code!"

$
0
0

Hi dfumagalli, we continue to have the same problem...

Did you happen to submit a bug report via the Support tab in the W3TC plugin?

The plugin developer(s) don't seem to be present on these WP Forums, so wondering if that's the only way to try to get this issue addressed or fixed...

pch-dev on "[Plugin: W3 Total Cache] How to work with minified versions when making changes to the files"

$
0
0

Hi,

I've never worked with minified versions of css or js before, so if I'm making changes to the dev-css and dev-js files, do I also need to make those changes in the minified versions? how does this work?

Thanks

http://wordpress.org/plugins/w3-total-cache/

vicusbass on "[Plugin: W3 Total Cache] Does it make sense to install Total Cache while still on localhost?"

dfumagalli on "[Plugin: W3 Total Cache] Beware, don't update to 0.93, found massive issue in the generated code!"

$
0
0

Hi dfumagalli, we continue to have the same problem...

Did you happen to submit a bug report via the Support tab in the W3TC plugin?

The plugin developer(s) don't seem to be present on these WP Forums, so wondering if that's the only way to try to get this issue addressed or fixed...

No, I have installed the best version I have: 0.9.2.11 and doing fine with it. I am very busy and also am closely following this other plug in issues. The developer in there is very kind and responsive so my time is well spent there.

dfumagalli on "re: W3 Total Cache wp-content/cache folder at 20+ GB"

$
0
0

You seem to have enabled file based objects and database caching.
Disable them.

- If you are on shared hosting they give you the problems you are experiencing while NOT providing much benefit in terms of speed.

- If you are on dedicated or VPS hosting you just use APC / XCache + memcache and forget about them.

chirag740 on "[Plugin: W3 Total Cache] No sydney nodes for Rackspace Cloud Files CDN"

$
0
0

So Sad :'( found this after registering for cloud files. Mr. Frederick Townes, I know this isn't a big deal for you please add Sydney node.

michaelgs on "[Plugin: W3 Total Cache] Trying to install W3TC generates fatal error"

$
0
0

I too have this problem and cannot activate w3 total cache


thealexangroup on "re: W3 Total Cache wp-content/cache folder at 20+ GB"

$
0
0

thanx for reply. will double-check what i have enabled... as soon as my dumb-fuh... uh, i mean hosting service gets my domain back online. ;-]

cheerz,
aap

nimo1 on "[Plugin: W3 Total Cache] Google Font error won't clear"

$
0
0

Anyone that may be able to lead me in the right direction on solving this?

satinderbal on "[Plugin: W3 Total Cache] Google Feedburner Not Working After Installing w3 total cache"

$
0
0

Hi
w3-total-cache

I heard from lots of sources that w3-total-cache is a awesome plugin and support your website for better performance for both user and in search engine.

2 Days before i installed this plugin and my problems starts.

1) My feed burner not working. feeds.feedburner.com/gosarkarinaukri
2) My java script files stop performing as they doing before.

My website Sarkari Naukri

Hope you resolve this problem . Because i don't want to uninstall this plugin because its reviews are excellent and hope it would work for me too.

Thanks In Advance.

http://wordpress.org/plugins/w3-total-cache/

PE-Pernet on "[Plugin: W3 Total Cache] How to cache google fonts ?"

PE-Pernet on "[Plugin: W3 Total Cache] How to cache google fonts ?"

$
0
0

FranH on "[Plugin: W3 Total Cache] W3 total cache error: incorrect # BEGIN W3TC Page Cache message"

$
0
0

Had the same issue with 0.9.3

Resolved it my removing Rules added by Better WP Security plugin, refreshing WP admin page and returning the Better WP Security rules back (reload .htaccess file, of course)

Max on "[Plugin: W3 Total Cache] media query strings not present with cdn enabled"

$
0
0

This is indeed new broken behavior for the latest version of W3TC that I have just noticed as well. Will dig into the source and see why the query strings are not appended -- and post back when I have a bit more clarity.


chirag740 on "[Plugin: W3 Total Cache] No sydney nodes for Rackspace Cloud Files CDN"

$
0
0

I moved from Rackspace to Amazon CloudFront. Amazon launched two new modes in India recently. Which is good for my target audience.

ctyldsley on "[Plugin: W3 Total Cache] W3TC loses all settings"

$
0
0

I'm having this exact same issue. After working on my settings for hours having them lost is beyond annoying.

Pothi Kalimuthu on "[Plugin: W3 Total Cache] Prefer .gz instead of .gzip"

Daniel on "[Plugin: W3 Total Cache] Trying to enable cloud flare in W3 total cache.."

$
0
0

Hi,
I have entered the info just as instructed including the api keys and so forth. When I hit the "save settings" button I get this error:

Unable to communicate with CloudFlare API: Setting: sec_lvl SSL certificate problem: unable to get local issuer certificate.

What is wrong and how can I correct this issue?

I'm running WP on 2003/iis6.

Thank you.
Kind regards
Daniel

http://wordpress.org/plugins/w3-total-cache/

marsviolet on "[Plugin: W3 Total Cache] Error: Empty hostname / CNAME list"

$
0
0

I have the same problem.
I changed my rachspac API and then entered the new on in w3tc and now I am getting this error.

Viewing all 19297 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>