mozilla/socorro — pull request #1503 by peterbe (2013-09-13 20:02:26+00:00)
Title: fixes bug 907855 - cache bugzilla summaries for fasster Top Crasher

@rhelmer

Also perhaps @ossreleasefeed wants to take a look.

The idea is that when the `buginfo()` does a lookup, it caches each bug's metadata.
Then, when you render the topcrasher or search results or report index, if there is something in the cache for a particular bug that gets inserted into the template to look like this:
```html
897503
```

Then in bugzilla.js what it does is loop over all `a.bug-link-with-data` elements and sets up the relevant title and stuff.
Then, if there are any links on the page that don't have data. I.e. that look like this:
```html
897503
```
(note the different class names)
It then fetches all the data for these and sets it on its data attributes. Then, again the function is called that sets up the relevant title and stuff.

A very important change here is that:

* How bugzilla link's appear is **cached for 1 hour**
* Rendering Top Crasher (for example), when caching warms up is going to be much faster since much less XHR is needed