Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LightSpeed Cache comment should be omitted in special case #7967

Open
westonruter opened this issue Jan 6, 2025 · 0 comments
Open

LightSpeed Cache comment should be omitted in special case #7967

westonruter opened this issue Jan 6, 2025 · 0 comments
Labels
Enhancement New feature or improvement of an existing one
Milestone

Comments

@westonruter
Copy link
Member

westonruter commented Jan 6, 2025

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
}

@westonruter westonruter added the Enhancement New feature or improvement of an existing one label Jan 6, 2025
@westonruter westonruter added this to the v2.5.6 milestone Jan 6, 2025
@westonruter westonruter moved this to To Do in Ongoing Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or improvement of an existing one
Projects
Status: To Do
Development

No branches or pull requests

1 participant