Rank Math is a revolutionary WordPress SEO Plugin that combines the features of many SEO tools and lets you multiply your traffic in the easiest way possible :bulb: :chart_with_upwards_trend: →
Describe the bug
When the Rewrite Titles feature is activated, optimizations from WP Rocket are not applied.
To Reproduce
Steps to reproduce the behavior:
Activate File Optimizations in WP Rocket
Activate Rewrite Titles in Rank Math
Clear the cache
Visit the site in a private window, you will see that page caching is applied, but file optimizations are not.
Expected behavior
File optimizations should be applied.
Additional context
I think the problem is probably the use of ob_get_clean() in /class-head.php
This clears out the buffer, leaving it empty. WP Rocket uses the buffer to perform optimizations. If it's empty, we can't optimize it.
Describe the bug When the Rewrite Titles feature is activated, optimizations from WP Rocket are not applied.
To Reproduce Steps to reproduce the behavior:
Expected behavior File optimizations should be applied.
Additional context I think the problem is probably the use of
ob_get_clean()
in /class-head.php This clears out the buffer, leaving it empty. WP Rocket uses the buffer to perform optimizations. If it's empty, we can't optimize it.