1 | static new ThreadLocal<Bool> mechList_clearCache_inFunction; |
2 | |
3 | svoid mechList_clearCache(S listName) {
|
4 | {
|
5 | temp tempSetTL(mechList_clearCache_inFunction, true); |
6 | print("Sending mech clear: " + listName);
|
7 | vmBus_send('mechList_clearCache, listName);
|
8 | } |
9 | |
10 | mechList_clearCache_noSend(listName); |
11 | } |
12 | |
13 | svoid mechList_clearCache_noSend(S listName) {
|
14 | for (S field : mcFields()) |
15 | if (startsWithEndsWith(field, "mech", "_cache")) {
|
16 | O o = getOptMC(field); |
17 | if (o instanceof Map) |
18 | removeFromMapCI_sync((Map) o, listName); |
19 | } |
20 | |
21 | /*if (mechList_goToCreator()) |
22 | callCreatorOpt('mechList_clearCache, listName);*/
|
23 | } |
Began life as a copy of #1014253
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1014347 |
| Snippet name: | mechList_clearCache - try to clear all caches related to a single list |
| Eternal ID of this version: | #1014347/11 |
| Text MD5: | fcfeb4e60a33d5452b7956250628102c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-23 13:27:41 |
| Source code size: | 667 bytes / 23 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 883 / 972 |
| Version history: | 10 change(s) |
| Referenced in: | [show references] |