WordPress.org

Support

Support » Plugins and Hacks » WP Fastest Cache » [Resolved] Trouble adding no cache code

[Resolved] Trouble adding no cache code

  • 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/

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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

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

    – Scott

    Plugin Author Emre Vona

    @emrevona

    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.

    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

    Plugin Author Emre Vona

    @emrevona

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

    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

    Plugin Author Emre Vona

    @emrevona

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

    Plugin Author Emre Vona

    @emrevona

    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/

    Plugin Author Emre Vona

    @emrevona

    Feature has been added…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Trouble adding no cache code’ is closed to new replies.
Skip to toolbar