diff --git a/config.php b/config.php index 850fe33..f3c267a 100644 --- a/config.php +++ b/config.php @@ -6,7 +6,7 @@ $config = array( 'url' => '/dlist/', 'index_files' => array('index', 'default', 'main'), - 'debug' => false, + 'debug' => true, // Display settings diff --git a/libs/exechandler.lib.php b/libs/exechandler.lib.php index 6a20933..abf9e9d 100644 --- a/libs/exechandler.lib.php +++ b/libs/exechandler.lib.php @@ -106,13 +106,12 @@ class execHandler { */ function cache ($force=false) { - if ( !($cache_ok = $this->check_cache()) ) { + if ( $force || $this->debug || !$this->check_cache() ) { echo "reloading\n"; $this->loadFile($this->files_to_load); $this->compile(); $this->save_cache(); } - print_r($cache_ok); } function addPath ($input) {