[Plugin: W3 Total Cache] Problem using W3TC with APC
-
Hi Frederick,
Thanks for your amazing plugin. I’ve been using WP-SuperCache and am considering switching to W3TC. Based on what I’ve read, it looks like W3TC will outperform WP SuperCache.
After loading W3TC, I found that the W3TC seemed to work perfectly when disk caching was enabled – both normal and enhanced.
But then I changed the cache type to APC. I also removed the conditional W3TC URL rewrite rules that was in the main .htaccess file because it seemed that these URL rewrite rules were needed for the disk cache, which stores files in the pgcache directory.
After changing the cache type to APC, I found that the web server returned a 404 error for all the URLs. When I put the URL rewrite rules back into the .htaccess file, then W3TC worked but used the disk-based cache rather than the APC cache even though I set all cache types to be APC.
Can you please help me figure out what is wrong?
FYI, I verified that APC is installed on my webserver. Below is the apc-related output from phpinfo(). Please note that my shmmax value is 256MB. This should be fine because I also increased the kernel.shmmax value from the 32MB default value to 256MB.
apc
apc.cache_by_default => On => On
apc.coredump_unmap => Off => Off
apc.enable_cli => Off => Off
apc.enabled => On => On
apc.file_update_protection => 2 => 2
apc.filters => no value => no value
apc.gc_ttl => 3600 => 3600
apc.include_once_override => Off => Off
apc.max_file_size => 1M => 1M
apc.mmap_file_mask => no value => no value
apc.num_files_hint => 1000 => 1000
apc.report_autofilter => Off => Off
apc.rfc1867 => Off => Off
apc.rfc1867_freq => 0 => 0
apc.rfc1867_name => APC_UPLOAD_PROGRESS => APC_UPLOAD_PROGRESS
apc.rfc1867_prefix => upload_ => upload_
apc.shm_segments => 1 => 1
apc.shm_size => 256 => 256
apc.slam_defense => 0 => 0
apc.stat => On => On
apc.stat_ctime => Off => Off
apc.ttl => 0 => 0
apc.user_entries_hint => 4096 => 4096
apc.user_ttl => 0 => 0
apc.write_lock => On => On
- The topic ‘[Plugin: W3 Total Cache] Problem using W3TC with APC’ is closed to new replies.