 import Vapor
 import VaporZewoMustache
 
-private let UserPurgeInterval = NSTimeInterval(60*60)
-private let UserTimeoutInterval = NSTimeInterval(60*60*24)
+private let PurgeInterval = NSTimeInterval(60*60)
+private let UserTimeoutInterval = NSTimeInterval(60*60*4)
 private let MinQueryLength = 3
 
 class App {

    // and update the purge timestamp so nobody tries to get in after us.
    
    dispatch_barrier_sync(self.usersQueue, {
      guard now.timeInterval(since: self.purgeTimeStamp) > UserPurgeInterval else {
        return
      }


    return user
  }
  
  private func purgeUsersAndRepos() {
    let now = NSDate()
    
    // Check if it's time to purge users.
    
    guard now.timeInterval(since: self.purgeTimeStamp) > PurgeInterval else {
      return
    }

