Parcourir la source

[core] simplify cache related code and remove misleading comment

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Pierre Mazière il y a 7 ans
Parent
commit
0a86d572c2
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      index.php

+ 2 - 3
index.php

@@ -109,9 +109,8 @@ try{
 
                     // Data retrieval
                     $bridge = Bridge::create($bridge);
-                    if(defined("DEBUG")) {
-                    } else {
-                        $bridge->setCache($cache); // just add disable cache to your query to disable caching
+                    if(!defined("DEBUG")) {
+                        $bridge->setCache($cache);
                     }
 
                     $noproxy=filter_input(INPUT_GET,'_noproxy');