Forums

[resolved] How do I get WP Super Cache to not cache a sidebar item? (9 posts)

  1. ultraspontane
    Member
    Posted 1 year ago #

    Hello folks. I have a good question for you wizards out there.

    I must warn you that my blog features nudity. Not nasty porn or anything, just nude photography. So tread carefully.

    I am using a plugin that displays a random photo from my galleries on the sidebar. Readers can click the photo and be taken to the gallery post. The issue is that it does not generate a new random picture when the page is refreshed due to "WP Super Cache". It only generates a new random picture when the cache rebuilds itself.

    I like using WP Super Cache. It makes my blog load faster. So I need to keep it enabled, but I also need my "random image" feature to work properly and not just refresh with the cache.

    Here is my blog, as I said earlier it contains nudity.

    http://curvynature.com/

    You see the sidebar "Random Model" feature? That is what I'm referring to.

  2. ultraspontane
    Member
    Posted 1 year ago #

    no ideas?

  3. iridiax
    Member
    Posted 1 year ago #

    You could use an iframe to have live content on an otherwise cached page, but I don't know exactly how to get the plugin content on the iframe.

  4. Donncha O Caoimh
    Member
    Posted 1 year ago #

    There's a section in the readme on using mfunc to do what you want but it would be easier to use Javascript to load your content.

  5. ultraspontane
    Member
    Posted 1 year ago #

    Well the plugin is called "random image block" and it has a section under settings for item you do not want to cache. You add "strings" in that box and will not cache them.

    How would I put the plugin into that?

  6. ultraspontane
    Member
    Posted 1 year ago #

    any other ideas?

  7. ultraspontane
    Member
    Posted 1 year ago #

    bump

  8. Donncha O Caoimh
    Member
    Posted 1 year ago #

    Sorry, no other ideas. I've never used that plugin so I can't tell you how it works. Maybe ask the author of that plugin?

  9. ultraspontane
    Member
    Posted 1 year ago #

    Yeah, I'll try asking the author.

    Good idea. Thanks.

Topic Closed

This topic has been closed to new replies.

About this Topic