Forum Moderators: coopster

Message Too Old, No Replies

How Does eAccelerator work with Mod Rewrite?

         

wchan07

11:51 pm on Apr 3, 2007 (gmt 0)

10+ Year Member



I have a site that runs off several templates, just really 5. I get 4000 vistors a day so my templates can be getting 2000 impressions a day per template.

I use mod rewrite on apache to redirect several hundred urls to those few templates.

I recently installed eAccelerator for PHP. does eAccelerator cache my templates or will it cache my site per URL?

I assume it is smart enough to cache just the templates.

Also, where can i find the cached pages? How do i verify that it is actually caching?

eelixduppy

8:40 pm on Apr 5, 2007 (gmt 0)



I'm not too familiar with the workings of eAccelerator, but it is run as a PHP extension. This leads me to believe that Apache's mod_rewrite will redirect the URL before the extension takes effect. Because of this, I'd say that it is only going to cache the template pages.

>> Also, where can i find the cached pages?

I believe when you set it up you had to specify a cache directory on your server. I'd look through your configuration settings to see where that is. I believe the default value is

/tmp/eaccelerator