Wordpress W3 Total Cache
Wordpress W3 Total Cache
So I tried using W3 Total Cache today for Wordpress, and at a first glance it's pretty amazing, speeding up the site loading from 7 seconds to 1.3 seconds (running the blog on a raspberry Pi, which is very slow).
I ran into a problem though, and I'm not sure if it's related to W3 or Permalinks, but W3 wanted me to change my Permalinks settings, which I did (changed to the "day and name" setting).
But now I get 404 on anything else than the front page.
I found loads of people with the same problem, and they all solved it with 2-3 different solutions, which I have tried, but alas it doesn't seem to work
Does anyone have any experience with this?
I ran into a problem though, and I'm not sure if it's related to W3 or Permalinks, but W3 wanted me to change my Permalinks settings, which I did (changed to the "day and name" setting).
But now I get 404 on anything else than the front page.
I found loads of people with the same problem, and they all solved it with 2-3 different solutions, which I have tried, but alas it doesn't seem to work
Does anyone have any experience with this?
"The best place to hide a tree, is in a forest"
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
Re: Wordpress W3 Total Cache
I had a similar problem (pagination not working and returning 404) which drove me nuts, and no fix to find on the net...just loads of people with the same problem.
I am 99% sure it's the same reason:
check the vhost container for the site and enable all options, per default it looks like
change that to
and see if it works, then you can narrow down the problem by adding options one by one.
I am 99% sure it's the same reason:
check the vhost container for the site and enable all options, per default it looks like
Code: Select all
Options +ExecCGI MultiViews -Indexes
Code: Select all
Options All
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
Re: Wordpress W3 Total Cache
P.S. depending on what module you use you will should enable all options for both the directory AND the wrapper (when using fcgi for example) in the container....simply because I don't remember for which one it applied in the end...
Re: Wordpress W3 Total Cache
hmm, I forgot to mention that I am using nginx (Apache seems to be very slow on the Raspberry PI).
Guess I could try and convert the .htaccess options to nginx ^^
Thanks b_b, I'll dig some more
Guess I could try and convert the .htaccess options to nginx ^^
Thanks b_b, I'll dig some more
"The best place to hide a tree, is in a forest"
Re: Wordpress W3 Total Cache
ah sorry ... I'm so stupid ^^
Because I didn't think about that I was using Nginx, I forgot to look for nginx-specific answers.
This solved it
Sorry for wasting your time buddy, and thanks for the replies!
Because I didn't think about that I was using Nginx, I forgot to look for nginx-specific answers.
This solved it
Code: Select all
try_files $uri $uri/ /index.php;
"The best place to hide a tree, is in a forest"
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
Re: Wordpress W3 Total Cache
no problem, good you made it work...
Re: Wordpress W3 Total Cache
Another thing I noticed now, is that only the front page seems to be cached (all other pages are slow)
Front page
Random post
Any experience with this b_b (or anyone else for that matter)?
I'm considering installing varnish later as well, to try and boost it.
But I have never needed to cache so much before like this, so I don't have that much experience with it.
Front page
Code: Select all
http://blog.alcor.se
Code: Select all
http://blog.alcor.se/index.php/2013/06/02/sin-4-5-some-important-changes/
I'm considering installing varnish later as well, to try and boost it.
But I have never needed to cache so much before like this, so I don't have that much experience with it.
"The best place to hide a tree, is in a forest"
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
Re: Wordpress W3 Total Cache
hm, I never had a reason to run a cache on website level, so I don't have really much experience with that...
have you checked/optimized your mysql config though? I mean, the site is not that extensive that I could see a reason for a cache at all, so the bottleneck seems to be on the server level...
a really good script I can recommend is the tuning-primer for mysql (should work for mariadb too in case you are using that one):
https://launchpad.net/mysql-tuning-primer" onclick="window.open(this.href);return false;
have you checked/optimized your mysql config though? I mean, the site is not that extensive that I could see a reason for a cache at all, so the bottleneck seems to be on the server level...
a really good script I can recommend is the tuning-primer for mysql (should work for mariadb too in case you are using that one):
https://launchpad.net/mysql-tuning-primer" onclick="window.open(this.href);return false;
Re: Wordpress W3 Total Cache
Well the bottleneck is the PHP processing.
The Raspberry PI is extremely slow when it comes to that, so I think optimizing that will be a bit hard
But I will have a look at the optimizer script for the db!
Thanks!
The Raspberry PI is extremely slow when it comes to that, so I think optimizing that will be a bit hard
But I will have a look at the optimizer script for the db!
Thanks!
"The best place to hide a tree, is in a forest"
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
Re: Wordpress W3 Total Cache
hm, I don't know your nginx config, but I am sure you can fiddle around with that one too to get some better performance (gzip compression, using the inbuilt caching features).
varnish might be not exactly the right solution I think, because it's more for sites that suffer from performance problems because of heavy hits and heavy db activity (because of the amount of content being pulled from the db), and not really for PHP caching in general....what about APC? I made some good experience with it on s-o v1 when it was on its first tiny vserver and it works with nginx too.
varnish might be not exactly the right solution I think, because it's more for sites that suffer from performance problems because of heavy hits and heavy db activity (because of the amount of content being pulled from the db), and not really for PHP caching in general....what about APC? I made some good experience with it on s-o v1 when it was on its first tiny vserver and it works with nginx too.
Re: Wordpress W3 Total Cache
I did a bit of research in to this before.
and from what I read they suggest using nginx to serve static files and apache as dynamic content handling like PHP etc
As apache has a lot of optimizing abilities and nginx is very fast at serving content
Don't quote me on this, I am going by pure memory
Anyway
and from what I read they suggest using nginx to serve static files and apache as dynamic content handling like PHP etc
As apache has a lot of optimizing abilities and nginx is very fast at serving content
Don't quote me on this, I am going by pure memory
Anyway