radioactivity_node incompatible with page caching

skiminki - August 28, 2008 - 18:30
Project:Radioactivity
Version:5.x-1.2-rc1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

Radioactivity_node-plugin is incompatible with page caching. You'll see error like 'Call to undefined function radioactivity_add_energy()' rendered to the bottom of the page, when page cache is turned on and the page is retrieved from the page cache.

#1

skiminki - August 28, 2008 - 18:42

This is because the following. When the page is retrieved from the cache, we don't do full drupal bootstrap. In fact, only modules with 'bootstrap' set to 1 are loaded. In essence, radioactivity_node has bootstrap 1, but radioactivity (which provides radioactivity_add_energy) has bootstrap 0. In addition, the core node module does not have bootstrap set to 1, so node_get_types() won't be available either.

#2

skiminki - August 28, 2008 - 19:48
Status:active» fixed

Committed: http://drupal.org/cvs?commit=136716

#3

Anonymous (not verified) - September 11, 2008 - 19:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.