How to Remove the Footer Comment

by admin

By default, WP Fastest Cache adds an HTML comment in the page footer that indicates when and for how long the cache was created.

While this comment might appear to clutter the HTML source of the page, it is actually quite useful for identifying any errors that occurred during the cache creation process.

You can easily remove the comment added to the HTML source of the page without modifying any files in WP Fastest Cache.

Method 1: Using Filter

If you need to remove the footer comment from the html source, you can use the following filter. You can add the filter on your theme’s functions.php file.

add_filter( 'wpfc_remove_footer_comment', '__return_true' );

Method 2: Using wp-config.php

You can also prefer the second method. You need to add the following line after <?php which exists at the top of wp-config.php file.

define('WPFC_REMOVE_FOOTER_COMMENT', true);

Note: Please do not forget to clear all cache.

Related articles

How to Move the Menu Item Under the Setting Menu
How to Move the Menu Item Under the Setting Menu

The menu item of WP Fastest Cache is added to the top level menu by default so you can reach…

Placeholder Image
Cache Url with QueryString

WP Fastest Cache does not create cache by default if a url contains a query string.

Create a Post Cache by ID Using the Function Hook
Create a Post Cache by ID Using the Function Hook

This function is designed for manually creating page caches.

Ready to get started?

Purchase your first license and see why 1,500,000+ websites globally around the world trust us.