public static void resetQueryCaches() {
    { Slot slot = null;
      Iterator iter000 = Module.allSlots(null, true);

      while (iter000.nextP()) {
        slot = ((Slot)(iter000.value));
        if (((NamedDescription)(KeyValueList.dynamicSlotValue(slot.dynamicSlots, Logic.SYM_LOGIC_DESCRIPTION, null))) != null) {
          Logic.deleteRuleCachesOnRelation(slot);
        }
      }
    }
    { NamedDescription description = null;
      Iterator iter001 = Logic.allNamedDescriptions(null, true);

      while (iter001.nextP()) {
        description = ((NamedDescription)(iter001.value));
        if (description.queryPatterns != null) {
          { KvListIterator it = ((KvListIterator)(description.queryPatterns.allocateIterator()));

            while (it.nextP()) {
              it.valueSetter(null);
            }
          }
        }
      }
    }
  }