Skip to content

LightSpeed Cache comment should be omitted in special case #7967

Open
@westonruter

Description

@westonruter

As noted by @milindmore22 in litespeedtech/lscache_wp#212 (comment), a lot of support topics still involve the LightSpeed Cache comment. While waiting for the issue to be fixed upstream, we should be able to resolve it by adding the following (h/t @szepeviktor in litespeedtech/lscache_wp#212 (comment)):

add_filter( 'litespeed_comment', '__return_false' );

Inside this condition:

if ( true === $should_validate_response ) {
self::add_validation_error_sourcing();
self::$is_validate_request = true;
if ( '1' === (string) ini_get( 'display_errors' ) ) {
// Suppress the display of fatal errors that may arise during validation so that they will not be counted
// as actual validation errors.
ini_set( 'display_errors', 0 ); // phpcs:ignore WordPress.PHP.IniSet.display_errors_Blacklisted
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNew feature or improvement of an existing one

    Type

    No type

    Projects

    Status

    To Do

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions