mirror of
				https://github.com/matrix-org/synapse.git
				synced 2025-11-04 10:11:05 +01:00 
			
		
		
		
	Merge pull request #2989 from matrix-org/erikj/profile_cache_master
Only update remote profile cache on master
This commit is contained in:
		
						commit
						3e839e0548
					
				@ -38,7 +38,10 @@ class ProfileHandler(BaseHandler):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        self.user_directory_handler = hs.get_user_directory_handler()
 | 
					        self.user_directory_handler = hs.get_user_directory_handler()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.clock.looping_call(self._update_remote_profile_cache, self.PROFILE_UPDATE_MS)
 | 
					        if hs.config.worker_app is None:
 | 
				
			||||||
 | 
					            self.clock.looping_call(
 | 
				
			||||||
 | 
					                self._update_remote_profile_cache, self.PROFILE_UPDATE_MS,
 | 
				
			||||||
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @defer.inlineCallbacks
 | 
					    @defer.inlineCallbacks
 | 
				
			||||||
    def get_profile(self, user_id):
 | 
					    def get_profile(self, user_id):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user