Closed Bug 718056 Opened 13 years ago Closed 13 years ago

/current/versions service not being cached

Categories

(Socorro :: Webapp, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rhelmer, Assigned: lonnen)

Details

Looks like every Socorro page is doing a request for the CurrentVersions service. The branch model is doing:

$resp = $service->get("${host}/current/versions/${from}");

But looking at the Web_Service->get() method, it won't cache the result unless we pass another arg, $cache_lifetime (default is null)
rhelmer: r?
https://github.com/mozilla/socorro/pull/280

I used ` tail /var/log/apach2/other_vhosts_access.log | grep "bpapi" ` to verify in vagrant, looking to make sure api calls were made after any action to invalidate and that browsing following that kept current/versions/{opts} cached. There are some variants on {opts}, so you may see up to 3 /current/versions/ calls after a change but otherwise the cache should handle it.

This introduces a config change.
Commits pushed to https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/1fd1dd53cbcba1304871cf2ce15f8f3d73c537cd
bug 718056 - add configurable cache to the branch model

https://github.com/mozilla/socorro/commit/ba671f8e2afc7b225161ba8ef46ab2c5c72b227b
Merge pull request #280 from Lonnen/718056-branch-cache

bug 718056 - add configurable cache to the branch model
What's the status here?  Should this move to 2.4.1 or are we going to ship a 2.4.0.1?
(In reply to Laura Thomson :laura from comment #6)
> What's the status here?  Should this move to 2.4.1 or are we going to ship a
> 2.4.0.1?

Oops, status is that this was fixed and pushed with 2.4 - forgot to mark resolved apparently. We confirmed on prod that this is now working.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.