• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

APC Caching Only 1 Site

Solidus

Well-known member
#1
Hi.

I have 2 XenForo forums on my server, but APC is caching only one. I am using the same settings in /library/config.php

Code:
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
$config['cache']['backend'] = 'Apc';
and here is my apc.ini

Code:
extension=apc.so
apc.enabled=1
apc.shm_size=1024M
apc.max_file_size=1M
apc.ttl=3600
apc.user.ttl=7200
apc.file_update_protection=2
apc.write_lock=1
apc.num_files_hint=3000
apc.stat=1
Site 1:



Site 2:



PHP 5.4.25
What could be wrong?
 

Steve F

Well-known member
#2
Your cache_id_prefix needs be unique to each site. Not absolutely sure that is your issue but I would start there and restart APC
 

Moshe1010

Well-known member
#3
I would start by replacing a dead, beta, software like APC. Why using something that wasn't updated for years if there are better alternatives like xCache for example.