code: public static void flushAll(PageContext pc, Resource dir, String cacheName) throws IOException {
  	Cache cache = CacheUtil.getCache(pc, cacheName, Config.CACHE_TYPE_TEMPLATE, null);
  	if (cache != null) CacheItemCache._flushAll(pc, cache);
  	else CacheItemFS._flushAll(pc, dir);
      }
docs: IOException;