Can't get APC to populate

stephencarr - July 5, 2009 - 21:02
Project:Authenticated User Page Caching (Authcache)
Version:6.x-1.0-beta7
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

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?

#1

stephencarr - July 5, 2009 - 21:52
Component:Documentation» Code

#2

Jonah Ellison - July 13, 2009 - 04:15

Did you ever find solution for this? Does APC work on its own? (apc_store(), apc_fetch())

#3

nikemen - July 19, 2009 - 00:03
Version:6.x-1.0-beta6» 6.x-1.0-beta7

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

Jonah Ellison - July 19, 2009 - 16:03

Can you post your APC settings from php.ini? Also, does apc.php display any entries under "User Cache Entries?"

#5

stephencarr - July 21, 2009 - 17:38

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.

 
 

Drupal is a registered trademark of Dries Buytaert.