Skip to content

Commit

Permalink
disabled URL cache, thus allowing for more frequent syncs than 1 per …
Browse files Browse the repository at this point in the history
…minute
  • Loading branch information
Honza Dvorsky committed Apr 26, 2015
1 parent 5fc388e commit 23d13de
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
5 changes: 5 additions & 0 deletions BuildaUtils/HTTPUtils.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ public class HTTP {
public var session: NSURLSession

public init(session: NSURLSession = NSURLSession.sharedSession()) {

//disable all caching
session.configuration.requestCachePolicy = .ReloadIgnoringLocalCacheData
session.configuration.URLCache = nil

self.session = session
}

Expand Down
6 changes: 3 additions & 3 deletions Buildasaur/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="7531" systemVersion="14D131" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<document type="com.apple.InterfaceBuilder3.Cocoa.Storyboard.XIB" version="3.0" toolsVersion="7702" systemVersion="14D105g" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES" initialViewController="B8D-0N-5wS">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7531"/>
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="7702"/>
<capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
</dependencies>
<scenes>
Expand Down Expand Up @@ -1810,7 +1810,7 @@
</progressIndicator>
<stepper horizontalHuggingPriority="750" verticalHuggingPriority="750" translatesAutoresizingMaskIntoConstraints="NO" id="XOz-yR-q3G">
<rect key="frame" x="174" y="5" width="19" height="27"/>
<stepperCell key="cell" continuous="YES" alignment="left" maxValue="1000" doubleValue="30" id="rxO-tX-mnE"/>
<stepperCell key="cell" continuous="YES" alignment="left" maxValue="1000" doubleValue="15" id="rxO-tX-mnE"/>
<connections>
<action selector="syncIntervalStepperValueChanged:" target="RHg-5W-Hb1" id="H7X-T0-MPD"/>
</connections>
Expand Down
2 changes: 1 addition & 1 deletion Buildasaur/StatusSyncerViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class StatusSyncerViewController: StatusViewController, SyncerDelegate {
self.updateIntervalFromUIToValue(syncer.syncInterval)

} else {
self.updateIntervalFromUIToValue(60) //default
self.updateIntervalFromUIToValue(15) //default
}
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Installation Steps
+ Paste your GitHub token
+ Select the path to your SSH keys
+ Click Done, which validates the settings and GitHub access
- In the bottom part, choose the sync interval (default is 1 minute, which works pretty well, don't decrease it too much, GitHub rate-limits access)
- In the bottom part, choose the sync interval (default is now 15 seconds, which works pretty well, don't decrease it too much, GitHub rate-limits access to 5000 requests per hour, when authenticated and only 60 when unauthenticated)
- If both Server and Project configs say *Verified access, all is well*, click **Start** to start syncing your pull requests with bots.

![](https://raw.githubusercontent.com/czechboy0/Buildasaur/master/Meta/builda_screenshot.png)
Expand Down

0 comments on commit 23d13de

Please sign in to comment.