MDL-36120 cachestore_file: Added missing singledirectory check in config check
authorSam Hemelryk <sam@moodle.com>
Tue, 6 Nov 2012 21:09:58 +0000 (10:09 +1300)
committerSam Hemelryk <sam@moodle.com>
Tue, 6 Nov 2012 21:09:58 +0000 (10:09 +1300)
cache/stores/file/lib.php

index c25536b..3e98512 100644 (file)
@@ -532,6 +532,9 @@ class cachestore_file implements cache_store, cache_is_key_aware {
         if (isset($data->autocreate)) {
             $config['autocreate'] = $data->autocreate;
         }
+        if (isset($data->singledirectory)) {
+            $config['singledirectory'] = $data->singledirectory;
+        }
         if (isset($data->prescan)) {
             $config['prescan'] = $data->prescan;
         }