static int ai_forgetAllHttpRequests() { int n = 0; new L toInvalidate; for ping (TripleWeb w : cloneList(ai_triplesWithB("was for path"))) { if (isCIPrefixPlusGlobalID_oneOf(w.a, "HTTP request ", "Bot HTTP request ")) { toInvalidate.addAll(triplesWithA(w.a)); if (l(toInvalidate) >= 500000) n += ai_removeTriplesInMemoryAndClear(toInvalidate); } } ret n + ai_removeTriplesInMemory(toInvalidate); }