WordPress.org

Ready to get started?Download WordPress

Forums

WP Fastest Cache
[resolved] Trouble adding no cache code (10 posts)

  1. sneader
    Member
    Posted 9 months ago #

    Like others have mentioned, WP Fastest Cache does not work with Forms (I am using the popular plugin Contact Form 7). I am trying to add the "no cache" code, but have found that it breaks the pages.

    I am using the "text" mode (not visual) and I have added this to the top of the page:

    <!-- <wpfcNOT> -->

    It breaks the page. When I view the source code, here is what I see:

    <!-- <wpfcNOT> –>

    I think you should consider using some type of short code instead of hidden HTML?

    For now, I have had to disable the plug-in. If you have a solution to this problem, I would like to hear about it. I am glad you are trying to create a SIMPLE, FAST caching plug-in. It is much needed. Do not try to be like the other plug-ins, please keep it simple!

    Thanks!

    - Scott

    http://wordpress.org/plugins/wp-fastest-cache/

  2. sneader
    Member
    Posted 9 months ago #

    It appears that the HTML code did not render properly in my post. Here is a screen shot of what I see:

    https://dl.dropboxusercontent.com/u/58440730/wp-fastest-cache-problem.gif

    You can see that the second set of -- has turned into the escape code for a long dash. This causes all the code on the page to be hidden, since the first <!-- stays intact.

    - Scott

  3. sneader
    Member
    Posted 9 months ago #

    ... also, when the plugin is deactivated, it leaves all the code in .htaccess. You should not do this... the code should be removed.

    - Scott

  4. Emre Vona
    Member
    Plugin Author

    Posted 9 months ago #

    Hi sneader, first of all thanks for your review...

    <!-- -->, this is HTML comment tag. You can read it on w3school

    I wrote it because users don't want to see "<wpfcNOT>" in their html surely.

    My plugin detects this text "<wpfcNOT>".

    You get error with html comment tag. You need to be sure what you added properly.

  5. sneader
    Member
    Posted 9 months ago #

    Emre, I apologize if my comment made it seem like I do not know HTML. I have been writing HTML since 1995.

    I literally copy and pasted your code from the plugin's screen into the Contact Form 'text' tab in WordPress. I did not type it, I copied it. It was absolutely entered correctly. Something is changing it into what you see at: https://dl.dropboxusercontent.com/u/58440730/wp-fastest-cache-problem.gif

    My suggestion is to use a WordPress Short Code. The Short Code would then be interpreted and the code would be changed to be whatever you need it to be. More on Short Codes here:

    http://codex.wordpress.org/Shortcode_API

    As it is, when I enter in the comment HTML, something is changing it to what you see in the screen capture above.

    - Scott

  6. Emre Vona
    Member
    Plugin Author

    Posted 9 months ago #

    now I got it and love it :) Thank you scott. I will implement it and inform you.

  7. GeorgBNM
    Member
    Posted 9 months ago #

    Hi all,

    i fixed this issue for me.

    Maybe it will help you, too?
    In "wp-fastest-cache/inc/common.php" line 241: preg_match("/<wpfcNOT>/", $buffer, $notCache);

    i changed it to preg_match("/wpfcNOT/", $buffer, $notCache);

    and voilá now i can prevent some sites from caching with this

    <!-- wpfcNOT -->

    adding to this sites.

    At the author: THX a lot for the fastest caching plugin ever!

    CU Georg

  8. Emre Vona
    Member
    Plugin Author

    Posted 9 months ago #

    Hi GeorgBNM, thank you :) I will use short code which is advised by sneader.

  9. Emre Vona
    Member
    Plugin Author

    Posted 9 months ago #

    Hi again sneader and GeorgBNM. I have implemented "short code" for this. You can add it on editor. You can look at screenshots...

    http://wordpress.org/plugins/wp-fastest-cache/screenshots/

  10. Emre Vona
    Member
    Plugin Author

    Posted 8 months ago #

    Feature has been added...

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.