• Resolved KR. Laboratories

    (@krashlab)


    Hi,

    I’m using the Redis Object Cache plugin on my WordPress site and noticed that it adds the following HTML comment to the page output:

    <!-- Performance optimized by Redis Object Cache. Learn more: https://wprediscache.com -->

    I’d like to remove this comment from the frontend HTML. Is there an officially supported way to disable or suppress it?

Viewing 2 replies - 1 through 2 (of 2 total)
  • wpbcd

    (@wpbcd)

    Hi. Comments can be disabled via the WP_REDIS_DISABLE_COMMENT constant. You can add define( 'WP_REDIS_DISABLE_COMMENT', true ); to your wp-config.php file.

    Thread Starter KR. Laboratories

    (@krashlab)

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to Remove HTML Comment Added by Redis Object Cache Plugin?’ is closed to new replies.