Extension, Plugin

Developer
Supported

EE 1
EE 2
Minimee

Back to this add-on's main page
View Other Add-ons From John D. Wells

     

You must be logged in to post.

Feature Request: MSM Compatibility

Feature Request

Mike Stecker
Mike Stecker

First off, GREAT extension! I love Minimee.

In case nobody has requested this before, I’d like to request compatibility with the multiple site manager. Right now it seems to use a global cache location, but it would be great to allow each site to have their own cache.

Thanks again!

John D Wells
# 1
Developer
John D Wells

Hi Mike,

Gah, sorry for not replying sooner - you’d posted this in the middle of a holiday of mine, and I’d plum forgotten!

Yep, you are in fact the first to mention such a request, but it’s perfectly reasonable. However it might be a bit of time before I get around to it, since it would require a significant rewrite - I’d likely need to move it from Extension to Module so that I can more efficiently work with per-site settings.

If you have any particular thoughts on how you’d like to see it behave, I’m keen to hear them.  Maybe this would make a nice well-rounded version 2….

Cheers,
John

Derek Hogue
# 2
Derek Hogue

Hey John, just ran into this myself with Minimee ... the tricky part might be squaring multiple cache locations with the config.php approach. But in terms of settings stored in the database, it’s pretty easy (in my experience) to just add one more level of depth to the settings array, using the site_id as the key, with each individual Minimee setting as an array underneath.

Hambo
# 3
Hambo

Devot-ee says this add-on is Multi Site compatible! Ack!

We’d love to see MSM compatibility please. We aren’t sharing any resources between sites so we only need to store the path and URL per site.

John D Wells
# 4
Developer
John D Wells

Sorry guys, it’s taking me longer than I’d hoped to find the spare time required to program in MSM compatibility via the CP.  I know what needs to be done, and have started the ball rolling, but blasted “real” work keeps getting in the way.

Any chance you can use the bootstrap/config method to configure MInimee?  You should be able to customise path & URLs on a per-site basis using this method.

Cheers,
John

Hambo
# 5
Hambo

I’ll wait for the update thanks John!

Studio Breakfast
# 6
Studio Breakfast

Hello,
Same problem for me but i used this solution:
In /index.php:

$url_site $_SERVER['SERVER_NAME'];
$tab_url explode ('.'$url_site);
$_domain $tab_url[1];

// after $assign_to_config['global_vars'] = array();
switch($_domain){
  
  
case "site1":
   
$assign_to_config['global_vars']['minimee_cache_path''/path/site1/cache/';
   
$assign_to_config['global_vars']['minimee_cache_url''http://www.site1.com/cache';
  break;
  
  case 
"site2":
   
$assign_to_config['global_vars']['minimee_cache_path''/path/site2/cache/';
   
$assign_to_config['global_vars']['minimee_cache_url''http://www.site2.com/cache';
  break;
  
  case 
"site3":
   
$assign_to_config['global_vars']['minimee_cache_path''/path/site3/cache/';
   
$assign_to_config['global_vars']['minimee_cache_url''http://www.site3.com/cache';
  break;
  
  default:
   
$assign_to_config['global_vars']['minimee_cache_path''/path/default/cache';
   
$assign_to_config['global_vars']['minimee_cache_url''http://www.(root-site).com/cache';
 

Works like a charm ; )

Hope this help

Tom