diff --git a/docs/04_For_Developers/05_Debug_mode.md b/docs/04_For_Developers/05_Debug_mode.md index 7d503acd..cccf2768 100644 --- a/docs/04_For_Developers/05_Debug_mode.md +++ b/docs/04_For_Developers/05_Debug_mode.md @@ -1,23 +1,28 @@ -

Warning!

+Debug mode has been removed. -Enabling debug mode on a public server may result in malicious clients retrieving sensitive data about your server and possibly gaining access to it. -Do not enable debug mode on a public server, unless you understand the implications of your doing! +If you want to disable caching you can set cache type to array (in-memory cache): -*** +```ini +[cache] -Debug mode enables error reporting and prevents loading data from the cache (data is still written to the cache). -To enable debug mode, set in `config.ini.php`: +; Cache type: file, sqlite, memcached, array, null +type = "array" +``` - enable_debug_mode = true +Alternatively, you can comment out the cache middleware in `lib/RssBridge.php`: -Allow only explicit ip addresses: +```diff +diff --git a/lib/RssBridge.php b/lib/RssBridge.php +index d16f1d89..da3df8be 100644 +--- a/lib/RssBridge.php ++++ b/lib/RssBridge.php +@@ -24,7 +24,7 @@ final class RssBridge - debug_mode_whitelist[] = 127.0.0.1 - debug_mode_whitelist[] = 192.168.1.10 - -_Notice_: - -* An empty file enables debug mode for anyone! -* The bridge whitelist still applies! (debug mode does **not** enable all bridges) - -RSS-Bridge will give you a visual feedback when debug mode is enabled. + $middlewares = [ + new BasicAuthMiddleware(), +- new CacheMiddleware($this->container['cache']), ++ //new CacheMiddleware($this->container['cache']), + new ExceptionMiddleware($this->container['logger']), + new SecurityMiddleware(), + new MaintenanceMiddleware(), +``` \ No newline at end of file diff --git a/docs/04_For_Developers/index.md b/docs/04_For_Developers/index.md index 97bbb854..31e513a5 100644 --- a/docs/04_For_Developers/index.md +++ b/docs/04_For_Developers/index.md @@ -6,7 +6,6 @@ If you are new to **RSS-Bridge** you should make yourself familiar with some gen - [Coding style policy](./01_Coding_style_policy.md) - [Folder structure](./03_Folder_structure.md) - - [Debug mode](./05_Debug_mode.md) - [Bridge API](../05_Bridge_API/index.md) - [Cache API](../07_Cache_API/index.md) - [Technical recommendations](../09_Technical_recommendations/index.md)