• Resolved ImageJason Wong

    (@eljkmw)


    I’ve added the following snippet into functions.php, and it doesn’t seem to exclude “woo-auction.js” from being cached. What’s amiss?

    // Exclude 'woo-auction.js' from LiteSpeed Cache optimisationonly if LiteSpeed Cache is active
    if ( is_plugin_active('litespeed-cache/litespeed-cache.php') ) {
    add_filter( 'litespeed_optimize_js_excludes', function( $excludes ) {
    $my_custom_excludes = array(
    '/wp-content/themes/airi-child/js/woo-auction.js',
    );
    return array_merge($excludes, $my_custom_excludes);
    } );
    }

    Please advise. Thank you.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.