GET flag to skip cache
This commit is contained in:
		
							parent
							
								
									f4a98e7a9b
								
							
						
					
					
						commit
						b01f425a55
					
				| @ -170,7 +170,7 @@ class Cache | ||||
|     { | ||||
|         $matches = []; | ||||
|         $c = null; | ||||
|         if ($dsn && preg_match("#(.*)://(.*)#", $dsn, $matches)) { | ||||
|         if ($dsn && preg_match("#(.*)://(.*)#", $dsn, $matches) && !isset($_GET['DISABLE_CACHE'])) { | ||||
|             if ($matches[1] == "memcache") { | ||||
|                 $c = new MemcacheCache($matches[2]); | ||||
|             } elseif ($matches[1] == "memcached") { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user