Permalink
Browse files

Fix cacheOptions

  • Loading branch information...
1 parent 0ffd5d2 commit cf0d688a9d7c8cacb5fce148b888dc566c047aff @cdujeu cdujeu committed May 18, 2016
Showing with 5 additions and 2 deletions.
  1. +5 −2 core/src/core/src/pydio/Core/Http/ApiRouter.php
@@ -51,9 +51,12 @@ class ApiRouter
* @param array $config
* @param array $cacheOptions
*/
- public function __construct($config, $cacheOptions = ["cacheDisabled" => AJXP_SKIP_CACHE, "cacheFile" => AJXP_DATA_PATH."/cache/plugins_api2routes.php"]){
+ public function __construct($config, $cacheOptions = []){
$this->config = $config;
- $this->cacheOptions = $cacheOptions;
+ $this->cacheOptions = array_merge([
+ "cacheDisabled" => AJXP_SKIP_CACHE,
+ "cacheFile" => AJXP_DATA_PATH."/cache/plugins_api2routes.php"
+ ], $cacheOptions);
}

0 comments on commit cf0d688

Please sign in to comment.