Title: Contact Data Encoding buffer breaks WP Rocket caching
Last modified: April 23, 2026

---

# Contact Data Encoding buffer breaks WP Rocket caching

 *  Resolved [mikeeey](https://wordpress.org/support/users/mikeeey/)
 * (@mikeeey)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/contact-data-encoding-buffer-breaks-wp-rocket-caching/)
 * Hi,
 * I’ve identified a conflict between CleanTalk’s Contact Data Encoding “Use the
   output buffer” option and WP Rocket’s page caching. Hoping to get guidance on
   the recommended configuration.
 * **Behavior observed:**
    - With “Use the output buffer” **ON**: phone/email blur works correctly, but
      the caching plugin writes zero cache files for any page. Every request executes
      PHP fully, resulting in high TTFB (~1000ms).
    - With “Use the output buffer” **OFF**: page caching works correctly (TTFB drops
      to ~150ms), but contact info on the site is unblurred.
 * **Diagnostic detail:** Logged the PHP output buffer stack at shutdown. CleanTalk’s
   encoder buffer sits between the caching plugin’s `Cache::maybe_process_buffer`(
   outer) and `Optimization::maybe_process_buffer` (inner) layers. When CleanTalk’s
   buffer closes, the final HTML doesn’t propagate correctly to the outer buffer,
   so no cache file is written. No `DONOTCACHEPAGE` constant is set, no PHP session
   is started, no disallowed response headers are sent — the only blocker is the
   buffer nesting itself.
 * **Environment:**
    - CleanTalk Spam Protect (latest version)
    - WP Rocket (latest version)
    - Divi theme
    - PHP 8.3 on nginx/Apache
 * **Questions:**
    1. Is there a page-cache-compatible mode for Contact Data Encoding that achieves
       the same visual blur without using a full-page output buffer (e.g. content-filter
       based, like `the_content`)?
    2. Is there a known-compatible configuration for CleanTalk + page caching plugins
       that preserves both the blur effect and caching?
 * Thanks in advance for any guidance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [katereji](https://wordpress.org/support/users/katereji/)
 * (@katereji)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/contact-data-encoding-buffer-breaks-wp-rocket-caching/#post-18889010)
 * Hello [@mikeeey](https://wordpress.org/support/users/mikeeey/)
 * Thank you for the detailed information regarding the issue. We appreciate it!
 * Could you please contact us via our private ticket system: [https://cleantalk.org/my/support/open](https://cleantalk.org/my/support/open)?
   We need to know your website URL, the plugin version and your CleanTalk account
   details for further investigation.
 *  Plugin Support [eugenecleantalk](https://wordpress.org/support/users/eugenecleantalk/)
 * (@eugenecleantalk)
 * [3 weeks, 6 days ago](https://wordpress.org/support/topic/contact-data-encoding-buffer-breaks-wp-rocket-caching/#post-18902786)
 * Hello.
 * We’ve figured out that contact encoding on your site works even with the “Use
   the output buffer” option disabled. If you need to configure the plugins with
   this option enabled in the future, please let us know.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcontact-data-encoding-buffer-breaks-wp-rocket-caching%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/cleantalk-spam-protect/assets/icon-256x256.gif?rev=3539767)
 * [Anti-Spam by CleanTalk. Spam protection](https://wordpress.org/plugins/cleantalk-spam-protect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleantalk-spam-protect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleantalk-spam-protect/)
 * [Active Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleantalk-spam-protect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleantalk-spam-protect/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [eugenecleantalk](https://wordpress.org/support/users/eugenecleantalk/)
 * Last activity: [3 weeks, 6 days ago](https://wordpress.org/support/topic/contact-data-encoding-buffer-breaks-wp-rocket-caching/#post-18902786)
 * Status: resolved