1 | static new ThreadLocal<Bool> ai_invalidateWeb_postAntiTriple; // off by default |
2 | sbool ai_invalidateWeb_removeFromMemory = true; |
3 | |
4 | static S ai_invalidateWeb(GlobalID webID) { |
5 | ret ai_invalidateWeb(ai_getWeb(webID)); |
6 | } |
7 | |
8 | static S ai_invalidateWeb(S webID) { |
9 | ret ai_invalidateWeb(ai_getWebFromTerm(webID)); |
10 | } |
11 | |
12 | static S ai_invalidateWeb(Web web) { |
13 | if (web == null) null; |
14 | S id = post("Web " + web.globalID, "is", "invalid"); |
15 | |
16 | if (isTrue(ai_invalidateWeb_postAntiTriple!)) { |
17 | T3<S> t = webToTriple(web); |
18 | if (t != null) |
19 | post(ai_tripleToInvalid(t)); |
20 | } |
21 | |
22 | if (ai_invalidateWeb_removeFromMemory) |
23 | ai_removeWeb(web); |
24 | |
25 | ret id; |
26 | } |
27 | |
28 | static void ai_invalidateWeb(WebNode node) { |
29 | ai_invalidateWeb(webNodeToWeb(node)); |
30 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011413 |
Snippet name: | ai_invalidateWeb |
Eternal ID of this version: | #1011413/14 |
Text MD5: | 919f45061cebd0f8d903dcac1260e95b |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-02-27 02:06:41 |
Source code size: | 767 bytes / 30 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 557 / 557 |
Version history: | 13 change(s) |
Referenced in: | [show references] |