Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
stephencarr CreditAttribution: stephencarr commentedComment #2
Jonah Ellison CreditAttribution: Jonah Ellison commentedDid you ever find solution for this? Does APC work on its own? (apc_store(), apc_fetch())
Comment #3
nikemen CreditAttribution: nikemen commentedSame 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 :-(
Comment #4
Jonah Ellison CreditAttribution: Jonah Ellison commentedCan you post your APC settings from php.ini? Also, does apc.php display any entries under "User Cache Entries?"
Comment #5
stephencarr CreditAttribution: stephencarr commentedMy APC settings are:
I am currently using eAccelerator instead which seems to work.
Comment #6
nikemen CreditAttribution: nikemen commentedI 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?
Comment #7
EvanDonovan CreditAttribution: EvanDonovan commented@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).
Comment #8
Jonah Ellison CreditAttribution: Jonah Ellison commented$conf['authcache'] needs to be $conf['cacherouter']