Modified the debug system to use a file as a trigger instead of a URL parameter.
Modified the gitignore accordingly.
This commit is contained in:
parent
3e8a7624e1
commit
d7f079e66b
2 changed files with 4 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -226,3 +226,4 @@ pip-log.txt
|
|||
##############
|
||||
/cache
|
||||
/whitelist.txt
|
||||
DEBUG
|
||||
|
|
|
@ -15,11 +15,10 @@ TODO :
|
|||
date_default_timezone_set('UTC');
|
||||
error_reporting(0);
|
||||
|
||||
if(isset($_REQUEST['debug'])) {
|
||||
if(file_exists("DEBUG")) {
|
||||
|
||||
ini_set('display_errors','1'); error_reporting(E_ALL); //Report all errors
|
||||
|
||||
$_REQUEST["disable_cache"] = true; //Disable the cache.
|
||||
define("DEBUG", "true");
|
||||
|
||||
}
|
||||
|
||||
|
@ -91,7 +90,7 @@ try{
|
|||
|
||||
// Data retrieval
|
||||
$bridge = Bridge::create($bridge);
|
||||
if(isset($_REQUEST["disable_cache"])) {
|
||||
if(defined("DEBUG")) {
|
||||
} else {
|
||||
$bridge->setCache($cache); // just add disable cache to your query to disable caching
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue