Closed Bug 1360675 Opened 7 years ago Closed 7 years ago

Bugzilla->clear_request_cache: add option to preserve some keys in the request cache

Categories

(bugzilla.mozilla.org :: General, enhancement)

Production
enhancement
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dylan, Assigned: dylan)

References

Details

Attachments

(1 file)

44 bytes, text/x-github-pull-request
dylan
: review+
Details | Review
Some times we want to clear out the request cache, but keep the dbh connection (and maybe some other things?),
so I propose having Bugzilla->clear_request_cache() take an option:


Bugzilla->clear_request_cache(except => \@KEYS);
Blocks: 1360619
Attached file PR
Attachment #8863014 - Flags: review?(rsoderberg)
Comment on attachment 8863014 [details] [review]
PR

r+ from atoll in irc.

16:16 <atoll> I would make clear request cache never clear persistent handles
16:16 <atoll> memcache, mysql, whatever
16:16 <atoll> store them in a separate cache
16:16 <@dylan> yeah, that is the eventual proper thing
16:16 <atoll> for now, r+ in spirit
16:42 <atoll> dylan: might be a while, feel free to copy verbal for me if you like
Attachment #8863014 - Flags: review?(rsoderberg) → review+
To git@github.com:mozilla-bteam/bmo.git
   b9c748cb7..20938c2a5  master -> master
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: