Commit 8a7d2faa authored by Nigel Kukard's avatar Nigel Kukard
Browse files

* Disable policy member caching for now

The rest of the caching should work just fine
parent 47ac0605
......@@ -204,11 +204,11 @@ sub getPolicyMembers
# Check cache
my ($cache_res,$cache) = cacheGetComplexKeyPair('Policies','Members');
if ($cache_res) {
return awitpt::cache::Error();
}
return $cache if (defined($cache));
# my ($cache_res,$cache) = cacheGetComplexKeyPair('Policies','Members');
# if ($cache_res) {
# return awitpt::cache::Error();
# }
# return $cache if (defined($cache));
# Grab all the policy members
my $sth = DBSelect('
......@@ -244,10 +244,10 @@ sub getPolicyMembers
}
# Cache this
$cache_res = cacheStoreComplexKeyPair('Policies','Members',\@policyMembers);
if ($cache_res) {
return awitpt::cache::Error();
}
# $cache_res = cacheStoreComplexKeyPair('Policies','Members',\@policyMembers);
# if ($cache_res) {
# return awitpt::cache::Error();
# }
return \@policyMembers;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment