ipban: delete the cache after changing the data
This commit is contained in:
		
							parent
							
								
									e4a91ec215
								
							
						
					
					
						commit
						1efb08b0fc
					
				@ -90,6 +90,7 @@ class IPBan implements Extension {
 | 
			
		||||
 | 
			
		||||
		if($event instanceof RemoveIPBanEvent) {
 | 
			
		||||
			$database->Execute("DELETE FROM bans WHERE id = ?", array($event->id));
 | 
			
		||||
			$database->cache->delete("ip_bans");
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
// }}}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user