From fda3e9886e2a3dcd718128799fff7b288cdfe5c9 Mon Sep 17 00:00:00 2001 From: Nicolas Delsaux Date: Wed, 26 Mar 2014 11:16:31 +0100 Subject: [PATCH] Allowed cache disabling to be performed on a per-query basis (very useful to add bridges to an existing and running installation of rss-bridge) --- index.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.php b/index.php index a95fcbb4..101e0148 100644 --- a/index.php +++ b/index.php @@ -39,9 +39,11 @@ try{ // Data retrieval $bridge = Bridge::create($bridge); - $bridge - ->setCache($cache) // Comment this lign for avoid cache use - ->setDatas($_REQUEST); + if(isset($_REQUEST["disable_cache"])) { + } else { + $bridge->setCache($cache); // just add disable cache to your query to disable caching + } + $bridge->setDatas($_REQUEST); // Data transformation $format = Format::create($format);