protected void checkReloadSites ( ) { long now = System . currentTimeMillis ( ) ; boolean reload = false ; synchronized ( this ) { reload = ( now - _lastReload > RELOAD_INTERVAL ) ; if ( reload ) { _lastReload = now ; } } if ( reload ) { try { _repo . refreshSiteData ( ) ; } catch ( PersistenceException pe ) { log . warning ( "Error refreshing site data." , pe ) ; } } }
Checks to see if we should reload our sites information from the sites table .