Posted by stephencarr on July 5, 2009 at 9:02pm
Jump to:
| Project: | Authenticated User Page Caching (Authcache) |
| Version: | 6.x-1.0-rc1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
All installed, APC confirmed by visiting:
http://gossipfeast.com/apc.php
Authcache installed, settings.php written thus:
$conf['cache_inc'] = './sites/all/modules/authcache/api/authcache.inc';
$conf['authcache'] = array(
'default' => array(
'engine' => 'apc', // apc, memcache, db, file, eacc or xcache
'server' => array(), // memcached (host:port, e..g, 'localhost:11211')
'shared' => TRUE, // memcached shared single process
'prefix' => '', // cache key prefix (for multiple sites)
'path' => 'files/filecache', // file engine cache location
'static' => FALSE, // static array cache (advanced)
),
);Debug always reports: cache_render: "n/a (first request?)"
The page never gets stored, which is confirmed by checking apc.php.
I put $is_page_authcache = TRUE; into my page and node tmpl files (not sure if this is right, worth a shot), still no caching.
Any ideas?
Comments
#1
#2
Did you ever find solution for this? Does APC work on its own? (apc_store(), apc_fetch())
#3
Same issue here. Caching doesn't work with APC nor with eAccelerator. I always get cache_render: "First_Page_Request" on Authcache Debug. If I use file it caches OK. If I got to apc.php everything works and I have plenty of memory... but empty. I'd really like to use APC :-(
#4
Can you post your APC settings from php.ini? Also, does apc.php display any entries under "User Cache Entries?"
#5
My APC settings are:
[apc]extension="apc.so"
apc.enabled=1
apc.shm_segments=1
apc.shm_size=12
apc.ttl=7200
apc.user_ttl=7200
apc.num_files_hint=1024
apc.mmap_file_mask=/home/user/tmp/apc.XXXXXX
apc.enable_cli=1
apc.rfc1867 = 1
I am currently using eAccelerator instead which seems to work.
#6
I have the same problem. In php.ini I only loaded the extension, with no additional settings. I can't install the other engines on my shared hosting, only have apc that doesn't work, but file works ok.
Any solution insight?
#7
@stephencarr: My first guess would be that your apc.shm_size is too small. Also, try adding in apc.max_file_size and set that to at least 10 (MB).
#8
$conf['authcache'] needs to be $conf['cacherouter']