code: public void invalidateByTemplate(String template, boolean waitOnInvalidation, DCache cache) {
          synchronized (this) {
              BatchUpdateList bul = getUpdateList(cache);
              bul.invalidateByTemplateEvents.put(template, new InvalidateByTemplateEvent(template, CachePerf.LOCAL));
          }
          if (waitOnInvalidation) {
              wakeUp(0, 0);
          }
      }
docs: This invalidates all cache entries in all caches whose template
  is specified.
  
  @param template The Template that is used to to invalidate fragments.
  @param waitOnInvalidation True indicates that this method should
  not return until all invalidations have taken effect.
  False indicates that the invalidations will take effect the next
  time the BatchUpdateDaemon wakes.