Caches complete test runs on the project/test_runs index page #6

Closed
wants to merge 1 commit into
from

Projects

None yet

2 participants

@trshafer

I did this so the index page doesn't calculate completed runs every time,
as that checks redis multiple times.

To accomplish this, I built a really simple in-memory cache to store any data.
You could easily change it to redis, however I thought an in memory cache
was faster and it shouldn't take up too much space.

BTW, I have no clue if this actually works. The specs do pass. But I couldn't get the web server to run, and didn't see any specs for the web server to test it against. I'm not super familiar with sinatra's render signature, so I based it off rails standard options. That should be looked at. And I don't know if the capture block works either. I believe haml implements capture too, so it might be ok. But the general idea, I believe, is there.

Thanks dude.

@trshafer trshafer Caches complete test runs on the project/test_runs index page
I did this so the index page doesn't calculate completed runs every time,
as that checks redis multiple times.

To accomplish this, I built a really simple in-memory cache to store any data.
You could easily change it to redis, however I thought an in memory cache
was faster and it shouldn't take up too much space.
86956f2
@deadlyicon deadlyicon closed this Apr 4, 2012
@deadlyicon
Owner

done. =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment