WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: WP Super Cache] What happen when using a theme switcher with multiple themes !? (11 posts)

  1. mrbabyqc
    Member
    Posted 6 years ago #

    Hi I'm very interesting by this plugin. But I want to know if and how it works with theme switching capability enable on a blog.
    TIA

  2. Cliveloseby
    Member
    Posted 6 years ago #

    Hi there, I don't think it works, never did for me anyway but it would be wonderful if it did. My experiece was that it couldn't tell the difference between the themes, so it just rendered it ineffective. Why not try it on a test site?

  3. mrbabyqc
    Member
    Posted 6 years ago #

    Hi Cliveloseby,
    You are right, it don't seems to work.

  4. Cliveloseby
    Member
    Posted 6 years ago #

    A great pity. I wonder if there is another way to speed up wordpress sites that use theme switching...

  5. Donncha O Caoimh
    Member
    Posted 6 years ago #

    The switch_theme action has been used to clear the cache when changing themes, but it didn't clear the static html cache properly until a change I made this morning.

    I presume you're referring to changing themes through the backend, and not showing different themes to certain users? If it's the latter then you need to write a small super-cache plugin to change the cache key for those users.

  6. mrbabyqc
    Member
    Posted 6 years ago #

    Hi, donncha,
    Theme-switcher is a plugin (Theme swictcher) that provide the ability for avery user to chose one theme between many installed on the blog please look it in action on my own (My site).

    So, is there a way to duplicate the cache so that the cached files are showed according to the used theme ?

    Thanks in advance for answer.

  7. Donncha O Caoimh
    Member
    Posted 6 years ago #

    You won't be able to use the supercache static html caching with this, but you can still use the wp-cache part. You'll need to add the wpthemexxxxx (where xxxxx is some key) cookie to the cache key though.

  8. mrbabyqc
    Member
    Posted 6 years ago #

    Hi donncha,
    You know I'm not a coder. Please can you be a litle bit more explicit ? My site loadtime is so much hight and for the moment, I don't understand why ! (though this began just after the sp-forum plugin installation). So it is more than necessery for me to implement some kind of caching system.

    TIA for a folowup ...

  9. That's some webpage load there...

    See this report.

    In addition to loading up 98 objects on your web page, I did not get the wp-super-cache comment at the end of the load. In the page source I should have seen

    <!-- Dynamic Page Served (once) in XX.XXX seconds -->

    It does not look like the wp-cache part is being engaged either.

  10. mrbabyqc
    Member
    Posted 6 years ago #

    Hi jdembowski, The Wp-cache plugin isn't activated yet. Since it doesn't seem compatible with theme-switching. During the weekend I'm gona make some tests without theme-switcher and evaluate the benefit of activating wp-super-cache. Thanks for the link to loadtime meter !

  11. Donncha O Caoimh
    Member
    Posted 6 years ago #

    Talk to the theme switcher plugin author and ask them to write a supercache plugin that uses the cacheaction "wp_cache_get_cookies_values" to add his cookie to the wp-cache cache key.

    Unfortunately I don't have time to write one myself but it's not that difficult to do.

Topic Closed

This topic has been closed to new replies.

About this Topic