Feedback: Multisite theme manager: asign blog

Hello :smiley:

I've been testing out the front-end Theme Preview option as you can see here:

It works brilliantly! Great job :smiley:

Unfortunately, it doesn't like caching :slight_smile: sooo...
Because I use caching, I've composed a little plugin that will help things get working at all with caching enabled :slight_smile:

If you can find a way without needing this little helper plugin, go ahead :smiley:

This plugin definitely works with W3 Total Cache, I expect WP Super Cache to work with these definitions as well... not sure though :slight_smile:

 * Plugin Name: Theme Page No Cache Fix
 * Plugin URI:
 * Description: Disables page cache and minify cache on each site you activate this plugin.
 * Version: 1.0.0
 * Author: Sybre Waaijer
 * Author URI:
 * License: GPLv2 or later

// could also be hooked into 'wp',  but now you can make it pluggable :D, not sure  if the effect will be different
add_action( 'init', 'fix_themepage_preview' );

// el diablo function
function fix_themepage_preview() {

    if ( ! defined( 'DONOTCACHEPAGE' ) )
        define( 'DONOTCACHEPAGE', true);

//   if ( ! defined( 'DONOTCACHCEOBJECT' ) )
//       define( 'DONOTCACHCEOBJECT', true );
// you  can keep this enabled, speed things up if set up :)

// I'm pretty sure minification will mess  up this plugin, so let's disable it as well
    if ( ! defined( 'DONOTMINIFY' ) )
        define( 'DONOTMINIFY', true );


I also composed a little extra CSS so it will align better with my theme and the amount of categories I have, I'm not sure if this will help anyone else but give it a shot:

<style type="text/css">
/* Removes bottom margin  from the last 2 elements, desired if there's no content after * /
.theme-browser .theme:last-of-type,
.theme-browser .theme:nth-last-of-type(2) {
    margin-bottom: 0;

/* Aligns the search thing  in the middle, desired on genesis themes */
.theme-search-holder {
    float:none !important;
    display:block !important;
    padding:25px 25px 5px;

/* Removes the "search themes" label text, forgot what it was exactly lol. This is a personal preference */
.theme-search-holder label {

Thanks guys, it's been a great year, learned so much! :smiley:
Up to another year of WPMUdev goodness :smiley: