diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-20 04:33:56 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-20 04:33:56 +0000 |
commit | 851a78f532e867f0d5d5b941b2528a475ada4b97 (patch) | |
tree | 97cb9285edbb5066368f8e8f107593266a1a2eb8 /modules/node/tests | |
parent | b4395139b1053032013c1d815be3a60eaf2963f0 (diff) | |
download | brdo-851a78f532e867f0d5d5b941b2528a475ada4b97.tar.gz brdo-851a78f532e867f0d5d5b941b2528a475ada4b97.tar.bz2 |
#898360 by sun, catch: Cache node types - saves 7% in MySQL in sites using memcache for caching backend
Diffstat (limited to 'modules/node/tests')
-rw-r--r-- | modules/node/tests/node_access_test.module | 2 |
1 files changed, 1 insertions, 1 deletions
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; |