I've never had to automatically refresh or flush. Both are automatically called on schedules. I have heard of folks automatically clearing caches but that was a thing mostly from the 1.x days. I haven't heard of it as thing in 5.x but I could be wrong.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.