Advanced cache
Project page:
This module is part of my larger effort to create highly optimized and fast loading Drupal sites. It is a series of patches that can be applied to Drupal core to cache object structures which otherwise don’t get cached. It plays especially nicely with the memcache module.





Advcache
I am very grateful that you authored the advcache module. Truly, this module can enhance the performance of a site made of drupal.
I am a "newbie" to drupal, working with its environment for just a few months. Though I can say that I have enough knowledge to create/maintain a simple site, I still need brilliant minds like yours to teach me things that I cannot learn on my own.
I would like to ask about the advanced cache module. I have a little idea how it should work. There are new tables created when advcache is installed. These tables are dedicated for caching purposes. But I can't seem to figure out why are these tables empty. And when I look up the code of the module and of the patches, I cannot locate the line where the insertion of datas to the tables are made.
Please, I need this clarification.
advcache
I finally found the cache_set code.
But the problem still exists. The tables the come the advcache installation are empty.
One more issue is in the advcache_nodeapi().
$maxrole = pow(2, (int)db_result(db_query("SELECT MAX(rid) FROM {role}")) - 1);
for ($i = 1; $i < $maxrole; $i++) {
cache_clear_all($node->nid. '::'. $i, 'cache_node');
}
My system has $maxrole = pow(2, 27). It means cache_clear_all will execute pow(2, 28) times. And it will result ti a PHP time-out.
And, by the way, I'm also running memcache. Is there any conflict with it?
I hope I'm making sense here.
Please join the conversation in the issue queue
http://drupal.org/node/188085
http://drupal.org/node/199465
It's better if we keep all discussions of coding issues in the proper place. Thanks!
-Rob
Compatible with APC?
Once again, good morning!
I have successfully installed advcache and memcache modules on the site I'm maintaining . It has been running for about three months and it is really great. It helped and improved the site in terms of performance.
I now have another concern. I hope that you could attend to this query. Is it possible for me to add the APC (Alternative PHP Cache) module on my site? Will it be compatible with memcache and advcache? Will there be no conflict or complications?
I need the APC (http://drupal.org/project/apc) module for the performance_logging module (http://drupal.org/project/performance)to run properly.
Thanks!
Looking forward for your reply,
-Jeuel
APC or another opcode cache recommended
An opcode cache should be your *first* line of performance enhancement. It is less intrusive to the application than memcache (because of the patching), and will make *more* of a performance difference. Opcode caches and memcache are absolutely compatible and sites that want to be fast should be using both.
-Rob