PHP Cache Handler not working, tried APC and XCache

3 posts / 0 new
Last post
#1 Sun, 07/25/2010 - 23:29
Rizvi

PHP Cache Handler not working, tried APC and XCache

Hello.

I have been trying to get one of the PHP cache apps to work on my server, but so far I haven't had any luck. The install goes fine, and I can see it loaded when I do phpinfo and php -v, but it's only caching the admin page (apc.php in the case of APC, and xcache.php in the case of XCache).

I have disabled Zend Optimizer because I realized this is probably causing issues. I am using the default settings for Virtualmin which is mod_fcgid and all the Apache directives are left as default. I installed the cache handlers with default settings at first, and also tried tweaking them per their documentation. The websites appear to be running fine but I'm just not seeing anything getting cached or showing as "hits" in the admin consoles of these cache handlers.

One of my sites is running Joomla and is has compatibility for these cache handlers, but even when cache is enabled in Joomla I still dont see any activity in the consoles, or notice improvements. I had XCache installed on my previous server and it was caching all PHP pages and they were showing up as hits in the XCache console.

Any idea what I might be doing wrong?

Thanks.

Mon, 07/26/2010 - 01:33
ronald
ronald's picture

i dont know about these tools, but for joomla you can give JCH_Optimize Plugin a try.
It doesn't cache per se but it will optimise your site pretty well.
I use it together with joomla's build in cache.

Using Yslow as a firefox extension will give you results about the speed of your site.

Mon, 07/26/2010 - 08:18
andreychek

One of the things you may want to do to determine if those cache modules are loading is to create a script called "test.php" (or similar) in your public_html dir, and put the following PHP code in it:

<?php phpinfo() ?>

When that runs, you'll see a bucketload of PHP output that should include a list of all the PHP plugins that are loaded. Is your cache module one of the modules listed that's loaded?

You may find some additional clues to the problem in $HOME/logs/error_log, where all your website related errors are going.

-Eric

Topic locked