public boolean shouldCacheCompactedBlocksOnWrite() {
    return this.cacheCompactedDataOnWrite;
  }
Returns true if blocks should be cached while writing during compaction, false if not
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/CacheConfig.java