I’ve got HB active to cache most of my site. The only problem is, on every page there’s a “random player profile” which displays one player for the whole day, and changes to a different player the next. This is added by the functions.php using:
include( get_stylesheet_directory() . '/random-player.php' )
Is there a way to prevent this one particular file from being cached? I’ve tried adding random-player.php to the exclusions in the admin which has no effect, and adding the code
define('DONOTCACHEPAGE', true); effectively disables page caching as it appears on every page.
Thanks in advance.