Update class.discussionrefresh.plugin.php

Added code for better performance when cache is used - untested by now!