• Resolved colmtroy

    (@colmtroy)


    Hey Gijo πŸ™‚

    I noticed Flying Scripts doesn’t currently play nicely with Cache Enabler due to them both using output buffering.

    Taking a look in html-rewrite.php I spotted your W3TC filter, so I tried something similar for Cache Enabler

    // cache enabler rewrite
    add_filter('cache_enabler_before_store', function ($buffer) {
        if ( is_admin() ) return $buffer;
        return flying_scripts_rewrite_html($buffer);
    });

    And it seems to do the trick.
    Any reason to NOT do this?

    Colm

    (sidenote: i’m stuck on an older version of Cache Enabler, the filter name is cache_enabler_page_contents_before_store in the newer versions)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gijo Varghese

    (@gijo)

    @colmtroy Thanks. I’ll add it in the next update.

    Hi Gijo
    Just saw this has already been highlighted, but I have same issue when using the plugin with any page cache i.e. WP Fastest cache, etc.

    When we enable server side cache, the Flying scripts plugin stops working.

    Is there a hook already that fixes this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cache Enabler Support’ is closed to new replies.