Batcache, Wordpress and nginx?!


#1

Im using Wordpress for my blog and its running on a Xen VPS with nginx
0.7.51, php-fpm and the lastest memcache daemon with memcache extension
in php. Everything works fine, but I would like to speed up the blog so
I heard that the best idea is Batcache.
I installed batcache, everything fine, but it doesnt cache anything,
nothing goes to memcache.

Is there any rewrite rules need it for batcache to work?!
Does anyone how come really good example or explanation how to set it
up?!

Please let me know if you can help

Thanks!


#2

On Apr 14, 2009, at 2:45 AM, Robert G. wrote:

Im using Wordpress for my blog and its running on a Xen VPS with nginx
0.7.51, php-fpm and the lastest memcache daemon with memcache
extension
in php. Everything works fine, but I would like to speed up the blog
so
I heard that the best idea is Batcache.
I installed batcache, everything fine, but it doesnt cache anything,
nothing goes to memcache.

Is there any rewrite rules need it for batcache to work?!

No rewrite rules are needed for batcache to work. Are you sure your
object-caching is working correctly in your WordPress environment?
Sounds like either a configuration error (memcached servers array
defined incorrectly or possible firewall rules blocking access). Are
you using the PECL memcache client or the pure-php implementation?
Are you seeing any php errors in your logs? For testing you can set
var $seconds to 0 so the pages get cached immediately.

Does anyone how come really good example or explanation how to set it
up?!

The instructions in the readme are pretty straightforward:

http://plugins.svn.wordpress.org/batcache/trunk/readme.txt


#3

How can I be sure that object-caching is working properly?


#4

Robert, I’m trying the exact same thing actually and seeing similar
issues.
Strange.


#5

Though I should mention this is on an apache install with stock php. So
it’s
not related to nginx at the very least :wink:


#6

Chris Z. wrote:

Though I should mention this is on an apache install with stock php. So
it’s
not related to nginx at the very least :wink:

I tried everything, Im stupid, but not that stupid :slight_smile:

Anyway, no errors, no messages, just doesnt really do anything batcache.
I installed wp-super-cache, added the rewrite rules, it works… but its
so so, have the impression none of the “engines” are what they suppose
to be, or im just really dump!

Thanks anyways!


#7

On Apr 15, 2009, at 3:12 AM, Robert G. wrote:

I installed wp-super-cache, added the rewrite rules, it works… but
its
so so, have the impression none of the “engines” are what they suppose
to be, or im just really dump!

Batcache works fine, we use it on WordPress.com to serve 40-50 million
pageviews/day. For a single server setup, however, wp-super-cache is
probably better. Batcache’s real use is in a multi web-server
environment since it doesn’t write to the filesystem there are no sync
issues, etc. If you want to contact me off list about your WordPress/
Batcache issues I can try to help, but seems like the nginx list isn’t
the best place for this discussion.

Barry