But the option is for W3 Total Cache. Not for WP Rocket, so that won’t really work of-course.
WP Rocket, among other caching plugins provide no useful compatibility layer for plugins that require certain things to be dynamic. Once they finally start supporting Fragmented Caching (or something similar that works) I’ll be among the first to support it.
For now W3 Total Cache is the only plugin that supports such a thing as far as I’m aware.