locale_refresh_cache call by Subscribe: legit or not?
When clicking on "Subscribe" on a node, it triggers locale_refresh_cache:
array(19) {
[0]=>
array(4) {
["file"]=>
string(41) "/var/www/d53/modules/locale/locale.module"
["line"]=>
int(172)
["function"]=>
string(20) "locale_refresh_cache"
["args"]=>
array(0) {
}
}
[1]=>
array(4) {
["file"]=>
string(32) "/var/www/d53/includes/common.inc"
["line"]=>
int(732)
["function"]=>
string(6) "locale"
["args"]=>
array(1) {
[0]=>
&string(8) "Usernode"
}
}
[2]=>
array(4) {
["file"]=>
string(74) "/var/www/d53/modules/contributed/usernode-5.x-1.3/usernode/usernode.module"
["line"]=>
int(23)
["function"]=>
string(1) "t"
["args"]=>
array(1) {
[0]=>
&string(8) "Usernode"
}
}
[3]=>
array(2) {
["function"]=>
string(18) "usernode_node_info"
["args"]=>
array(0) {
}
}
[4]=>
array(4) {
["file"]=>
string(32) "/var/www/d53/includes/module.inc"
["line"]=>
int(406)
["function"]=>
string(20) "call_user_func_array"
["args"]=>
array(2) {
[0]=>
&string(18) "usernode_node_info"
[1]=>
&array(0) {
}
}
}
[5]=>
array(4) {
["file"]=>
string(37) "/var/www/d53/modules/node/node.module"
["line"]=>
int(351)
["function"]=>
string(17) "module_invoke_all"
["args"]=>
array(1) {
[0]=>
&string(9) "node_info"
}
}
[6]=>
array(4) {
["file"]=>
string(37) "/var/www/d53/modules/node/node.module"
["line"]=>
int(231)
["function"]=>
string(17) "_node_types_build"
["args"]=>
array(0) {
}
}
[7]=>
array(4) {
["file"]=>
string(37) "/var/www/d53/modules/node/node.module"
["line"]=>
int(433)
["function"]=>
string(14) "node_get_types"
["args"]=>
array(2) {
[0]=>
&string(6) "module"
[1]=>
&object(stdClass)#1 (19) {
["nid"]=>
string(3) "595"
["vid"]=>
string(3) "944"
["type"]=>
string(7) "message"
["status"]=>
string(1) "1"
["created"]=>
string(10) "1195691715"
["changed"]=>
string(10) "1195691715"
["comment"]=>
string(1) "2"
["promote"]=>
string(1) "0"
["sticky"]=>
string(1) "0"
["revision_timestamp"]=>
string(10) "1195691715"
["title"]=>
string(29) "test message for translation "
["body"]=>
string(406) "test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation "
["teaser"]=>
string(200) "test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translati"
["log"]=>
string(0) ""
["format"]=>
string(1) "1"
["uid"]=>
string(2) "19"
["name"]=>
string(7) "Pierre-"
["picture"]=>
string(0) ""
["data"]=>
string(185) "a:6:{s:7:"contact";i:1;s:18:"subscriptions_auto";i:1;s:20:"subscriptions_teaser";i:1;s:8:"og_email";s:1:"1";s:23:"subscriptions_subscribe";i:1;s:29:"taxonomy_image_disable_images";i:0;}"
}
}
}
[8]=>
array(4) {
["file"]=>
string(37) "/var/www/d53/modules/node/node.module"
["line"]=>
int(453)
["function"]=>
string(9) "node_hook"
["args"]=>
array(2) {
[0]=>
&object(stdClass)#1 (19) {
["nid"]=>
string(3) "595"
["vid"]=>
string(3) "944"
["type"]=>
string(7) "message"
["status"]=>
string(1) "1"
["created"]=>
string(10) "1195691715"
["changed"]=>
string(10) "1195691715"
["comment"]=>
string(1) "2"
["promote"]=>
string(1) "0"
["sticky"]=>
string(1) "0"
["revision_timestamp"]=>
string(10) "1195691715"
["title"]=>
string(29) "test message for translation "
["body"]=>
string(406) "test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation "
["teaser"]=>
string(200) "test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translati"
["log"]=>
string(0) ""
["format"]=>
string(1) "1"
["uid"]=>
string(2) "19"
["name"]=>
string(7) "Pierre-"
["picture"]=>
string(0) ""
["data"]=>
string(185) "a:6:{s:7:"contact";i:1;s:18:"subscriptions_auto";i:1;s:20:"subscriptions_teaser";i:1;s:8:"og_email";s:1:"1";s:23:"subscriptions_subscribe";i:1;s:29:"taxonomy_image_disable_images";i:0;}"
}
[1]=>
&string(4) "load"
}
}
[9]=>
array(4) {
["file"]=>
string(37) "/var/www/d53/modules/node/node.module"
["line"]=>
int(541)
["function"]=>
string(11) "node_invoke"
["args"]=>
array(2) {
[0]=>
&object(stdClass)#1 (19) {
["nid"]=>
string(3) "595"
["vid"]=>
string(3) "944"
["type"]=>
string(7) "message"
["status"]=>
string(1) "1"
["created"]=>
string(10) "1195691715"
["changed"]=>
string(10) "1195691715"
["comment"]=>
string(1) "2"
["promote"]=>
string(1) "0"
["sticky"]=>
string(1) "0"
["revision_timestamp"]=>
string(10) "1195691715"
["title"]=>
string(29) "test message for translation "
["body"]=>
string(406) "test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation "
["teaser"]=>
string(200) "test message for translation test message for translation test message for translation test message for translation test message for translation test message for translation test message for translati"
["log"]=>
string(0) ""
["format"]=>
string(1) "1"
["uid"]=>
string(2) "19"
["name"]=>
string(7) "Pierre-"
["picture"]=>
string(0) ""
["data"]=>
string(185) "a:6:{s:7:"contact";i:1;s:18:"subscriptions_auto";i:1;s:20:"subscriptions_teaser";i:1;s:8:"og_email";s:1:"1";s:23:"subscriptions_subscribe";i:1;s:29:"taxonomy_image_disable_images";i:0;}"
}
[1]=>
&string(4) "load"
}
}
[10]=>
array(4) {
["file"]=>
string(60) "/var/www/d53/modules/contributed/og-5.x-4.0.tar/og/og.module"
["line"]=>
int(250)
["function"]=>
string(9) "node_load"
["args"]=>
array(1) {
[0]=>
&int(595)
}
}
[11]=>
array(4) {
["file"]=>
string(60) "/var/www/d53/modules/contributed/og-5.x-4.0.tar/og/og.module"
["line"]=>
int(212)
["function"]=>
string(12) "og_set_theme"
["args"]=>
array(1) {
[0]=>
&string(3) "595"
}
}
[12]=>
array(4) {
["file"]=>
string(60) "/var/www/d53/modules/contributed/og-5.x-4.0.tar/og/og.module"
["line"]=>
int(146)
["function"]=>
string(8) "og_theme"
["args"]=>
array(0) {
}
}
[13]=>
array(2) {
["function"]=>
string(7) "og_init"
["args"]=>
array(0) {
}
}
[14]=>
array(4) {
["file"]=>
string(32) "/var/www/d53/includes/module.inc"
["line"]=>
int(406)
["function"]=>
string(20) "call_user_func_array"
["args"]=>
array(2) {
[0]=>
&string(7) "og_init"
[1]=>
&array(0) {
}
}
}
[15]=>
array(4) {
["file"]=>
string(32) "/var/www/d53/includes/common.inc"
["line"]=>
int(1860)
["function"]=>
string(17) "module_invoke_all"
["args"]=>
array(1) {
[0]=>
&string(4) "init"
}
}
[16]=>
array(4) {
["file"]=>
string(35) "/var/www/d53/includes/bootstrap.inc"
["line"]=>
int(885)
["function"]=>
string(22) "_drupal_bootstrap_full"
["args"]=>
array(0) {
}
}
[17]=>
array(4) {
["file"]=>
string(35) "/var/www/d53/includes/bootstrap.inc"
["line"]=>
int(822)
["function"]=>
string(17) "_drupal_bootstrap"
["args"]=>
array(1) {
[0]=>
&int(7)
}
}
[18]=>
array(4) {
["file"]=>
string(22) "/var/www/d53/index.php"
["line"]=>
int(13)
["function"]=>
string(16) "drupal_bootstrap"
["args"]=>
array(1) {
[0]=>
&int(7)
}
}
}
Same for unsubscribing.
Resolution
More like this
- A call to t() in FAQ causing excessive locale cache refreshing
- Locale slowing stuff down, too many cache refreshes: investigating the professional way
- i18nmenu too many calls to refresh cache?
- End of a Saga: the locale_refresh_cache bug was in location_views
- t() call in hook_info in Usernode causes too much locale caching


Comments
Post new comment