• Resolved Rodrigo Gomes

    (@rodrigogomes-1)


    Hello dev staff,

    You have a filter equal to “wp_cache_ob_callback_filter” from wp-super-cache?

    I need to make my plugin compatible with yours, and for that, I need to filter the output buffer data before the cache is generated.

    If I use ob_start(), my plugin does not work, or yours does not work, it depends on which one loads first.
    It is impossible to make both plugins change the output buffer at the same time.

    To solve this problem, wp-super-cache has created a filter called wp_cache_ob_callback_filter, where I can manipulate the buffer before the cache is generated, solving all compatibility issues.

    This is a very old issue. For more information, access: https://stackoverflow.com/a/51171913/6132051

Viewing 2 replies - 1 through 2 (of 2 total)
  • add_filter('w3tc_pagecache_set', 'callback');

    callback: the function which will receive the HTML output as its first parameter. This filter is called just before the output is stored as a cache file.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    No activity for over a week.
    Closing this ticket.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘You have a filter equal to “wp_cache_ob_callback_filter”?’ is closed to new replies.