From 851a78f532e867f0d5d5b941b2528a475ada4b97 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Sat, 20 Nov 2010 04:33:56 +0000 Subject: #898360 by sun, catch: Cache node types - saves 7% in MySQL in sites using memcache for caching backend --- modules/node/tests/node_access_test.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node/tests/node_access_test.module') diff --git a/modules/node/tests/node_access_test.module b/modules/node/tests/node_access_test.module index 33f7a01b4..50fb169c6 100644 --- a/modules/node/tests/node_access_test.module +++ b/modules/node/tests/node_access_test.module @@ -16,7 +16,7 @@ function node_access_test_node_grants($account, $op) { if ($op == 'view' && user_access('node test view', $account)) { $grants['node_access_test'] = array(888); } - if ($op == 'view' && variable_get('node_test_node_access_all', 0)) { + if ($op == 'view' && $account->uid == variable_get('node_test_node_access_all_uid', 0)) { $grants['node_access_all'] = array(0); } return $grants; -- cgit v1.2.3