Top

WP-Super-Cache Does not Allow PHP Conditions

March 17, 2008

WP-Super-Cache WordPress plugin does it again. This time, the cache doesn't let me display custom message for user with Internet Explorer, because it only cache the first instant of the page.

Do you notice the different view of my blog's header when it you see on Firefox, and when you see it on Internet Explorer? I inserted some PHP code to recognize when it's IE to display the Firefox recommendation message. That's because I disabled the WP-Super-Cache. When Super Cache is enabled, it will make the page display exactly the same on both FireFox, and IE.

I am going to look for some solution. For now, let's bear not having Super Cache on my site. So please, don't abuse it and send tons of traffic from Digg and StumbleUpon. ;) Thanks.

Previously, the plugin duplicated my content. It's a long story and I had solution for that and I will write about it later on.

You can find the plugin here: WP-Super-Cache

Tags: ,

Comments

5 Responses to “WP-Super-Cache Does not Allow PHP Conditions”

  1. Donncha O Caoimh on March 17th, 2008 4:57 pm

    You could try putting your header logic in a Javascript function as that's the only code that will execute on a statically cached html page.
    There must be a better way of doing it rather than disabling the plugin completely.

  2. Binh Nguyen on March 17th, 2008 6:30 pm

    Donncha O Caoimh » Thanks for visiting this small humble blog of mine. I thought about that too, but not known if possible to write that Google's JavaScript code within some JavaScript. Let's see how it go.

  3. Jimmy on March 28th, 2008 4:33 pm

    I had the same headache with WP-Super-Cache, worse Google WebmasterTool reported a ton of invalid links after I disabled it -- not good for SEO. For me, WP-Cache is OK now.

  4. Binh Nguyen on June 20th, 2009 2:58 am

    Update: I had to modify the slug cutting "wp-" because it's causing server error 500. Will check out the issue

  5. Binh Nguyen on June 20th, 2009 3:02 am

    Update: Problem with the wp- is fixed. Will post about it later.

Got something to say?





Bottom