static new ThreadLocal<Bool> mechList_clearCache_inFunction;
svoid mechList_clearCache(S listName) {
{
temp tempSetTL(mechList_clearCache_inFunction, true);
print("Sending mech clear: " + listName);
vmBus_send('mechList_clearCache, listName);
}
mechList_clearCache_noSend(listName);
}
svoid mechList_clearCache_noSend(S listName) {
for (S field : mcFields())
if (startsWithEndsWith(field, "mech", "_cache")) {
O o = getOptMC(field);
if (o instanceof Map)
removeFromMapCI_sync((Map) o, listName);
}
/*if (mechList_goToCreator())
callCreatorOpt('mechList_clearCache, listName);*/
}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: | 1144 / 1213 |
| Version history: | 10 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |