• Resolved Generosus

    (@generosus)


    Good Day,

    We would like to remove all HTML tags generated by your plugin from our website’s page source.

    Specifically, we have removed the HTML tag noted below using the noted wp-config.php command.

    <!-- WP Fastest Cache file was created in 2.546040058136 seconds, on 07-08-24 8:18:20 --
    define('WPFC_REMOVE_FOOTER_COMMENT', true);

    However, we also want to remove the HTML tag noted below that was generated after we implemented the above (partial) solution:

    <!-- need to refresh to see cached version -->

    In this post, you said it’s not possible. Why not? What is the importance of having noted HTML tags in our website’s page source? For troubleshooting reasons? If so, let us (website developers) own that.

    Kindly provide a solution.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter Generosus

    (@generosus)

    Suggestion:

    It would be great if you can provide a filter similar to the one below (example only). Other developers have provided similar ones that work well. Thank you.

    add_filter( 'wpfc_remove_html_comments', '__return_true' );
    Plugin Author Emre Vona

    (@emrevona)

    1. “need to refresh to see cached version” occurs only once, so you do not need to remove it.
    2. Where can this filter be added? into the function.php of a theme?

    Thread Starter Generosus

    (@generosus)

    Yes, the filter (once you develop it) would be added to the functions.php file of a site — or — via code snippets plugin.

    Here is the perfect explanation on how that works.

    Hoping you can develop and provide the filter soon.

    Thank you!

    Plugin Author Emre Vona

    (@emrevona)

    thank you so much. I will add it and let you know.

    Thread Starter Generosus

    (@generosus)

    Great! We’ll close this topic as “Resolved” once the new feature is released. Thank you!

    Plugin Author Emre Vona

    (@emrevona)

    I added the feature. you need to delete and download the following version to get the latest changes.

    https://downloads.www.ads-software.com/plugin/wp-fastest-cache.zip

    Thread Starter Generosus

    (@generosus)

    Two questions:

    1. Is your updated file going to be officially released as V1.3.1?
    2. In order for your solution to work, is it necessary to use the above, recommended filter?

    Thank you.

    Plugin Author Emre Vona

    (@emrevona)

    1. yes
    2. I am so sorry. I forgot to write the filter.
    add_filter( 'wpfc_remove_footer_comment', '__return_true' );
    Thread Starter Generosus

    (@generosus)

    So far, so good. Topic “Resolved.”

    Will re-open topic if the issue comes back after implementing your solution.

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.