aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_admin.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r--phpBB/includes/functions_admin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index c2136d4671..e6b84cc67c 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -807,7 +807,7 @@ class auth_admin extends auth
function acl_cache_options($options = false)
{
- global $db;
+ global $db, $cache;
$options = array();
@@ -833,6 +833,7 @@ class auth_admin extends auth
$db->sql_freeresult($result);
}
+/*
// Re-cache options
$cache_str = "\$acl_options = array(\n";
foreach ($options as $type => $options_ary)
@@ -848,6 +849,9 @@ class auth_admin extends auth
config_cache_write('\$acl_options = array\(.*?\);', $cache_str);
$this->acl_clear_prefetch();
+*/
+ $cache->put('acl_options', $options);
+ $this->acl_clear_prefetch();
return $options;
}