mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-11-04 10:11:05 +01:00 
			
		
		
		
	Update LruCache size estimate on clear
This commit is contained in:
		
							parent
							
								
									ae7b4da4cc
								
							
						
					
					
						commit
						c430111d0e
					
				@ -189,6 +189,8 @@ class LruCache(object):
 | 
			
		||||
                for cb in node.callbacks:
 | 
			
		||||
                    cb()
 | 
			
		||||
            cache.clear()
 | 
			
		||||
            if size_callback:
 | 
			
		||||
                cached_cache_len[0] = 0
 | 
			
		||||
 | 
			
		||||
        @synchronized
 | 
			
		||||
        def cache_contains(key):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user