Commit e6a322b0 authored by Andrew Gerrand's avatar Andrew Gerrand

dashboard: fix todo caching nil

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5504082
parent 5a65cbac
......@@ -152,11 +152,10 @@ func todoHandler(r *http.Request) (interface{}, os.Error) {
c := appengine.NewContext(r)
now := cache.Now(c)
key := "build-todo-" + r.Form.Encode()
cachedTodo := new(Todo)
if cache.Get(r, now, key, cachedTodo) {
return cachedTodo, nil
}
var todo *Todo
if cache.Get(r, now, key, &todo) {
return todo, nil
}
var err os.Error
builder := r.FormValue("builder")
for _, kind := range r.Form["kind"] {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment