I have some code that I'm running in an extension where most of the time is taken up by calling BUG_STATE_OPEN. Its return value should be cached.
Created attachment 392868 [details] [diff] [review] v1 Let me know if you think this is safe enough to backport to 3.4.
Comment on attachment 392868 [details] [diff] [review] v1 Looks good to me. Should be a nice perf improvement. r=LpSolit
And yes, I think it's safe for 3.4.
Oh, and as I said on IRC, don't forget to clear the cache in remove_from_db() too.
I did the checkin fix. Checking in Bugzilla/Status.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Status.pm,v <-- Status.pm new revision: 1.12; previous revision: 1.11 done