diff options
author | Phie <phie@phie.ovh> | 2019-04-08 01:30:22 +0300 |
---|---|---|
committer | Phie <phie@phie.ovh> | 2019-04-08 01:30:22 +0300 |
commit | 0fd5ee3074a6938e9e87f8df24c9d9659cc3cbd4 (patch) | |
tree | e2b8d3c3ef10f4393e971c686549867e70379f8a | |
parent | 6525105f8230649c11805cccc4732623a21ada27 (diff) |
cache wasn't enable
-rwxr-xr-x | lib/Controller/NoteController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Controller/NoteController.php b/lib/Controller/NoteController.php index 0b7dfa7..752f4e3 100755 --- a/lib/Controller/NoteController.php +++ b/lib/Controller/NoteController.php @@ -489,19 +489,19 @@ /** * @NoAdminRequired + * @NoCSRFRequired */ public function getMetadata($paths){ $array = array(); $pathsAr = explode(",",$paths); $cache = new CacheManager($this->db, $this->CarnetFolder); $metadataFromCache = $cache->getFromCache($pathsAr); - foreach($pathsAr as $path){ if(empty($path)) continue; try{ - if(!array_key_exists($this->CarnetFolder->getFullPath($path), $metadataFromCache) OR True){ + if(!array_key_exists($this->CarnetFolder->getFullPath($path), $metadataFromCache)){ $utils = new NoteUtils(); try{ $meta = $utils->getMetadata($this->CarnetFolder, $path); |