Hi Edwin,
I have tried to use the plugin listed earlier in this thread on a slave site. The plugin basically joins and compresses all the css and js on a site and caches it in one place. It seems to cache the file in the correct salve site cache folder but when I go to the site it doesn't work.
This is because the plugin adds this to the head
<link rel="stylesheet" type="text/css" href="/plugins/system/CssJsCompress/css.php?css=e6145bf85ae684dbe03491a0aac5128d.css.gz"/>
Looks like the css.php file is to blame here:
Code: |
define('PATH_ROOT', dirname(__FILE__) . DS);
$file=PATH_ROOT.'..'.DS.'..'.DS.'..'.DS.'cache'.DS.'css'.DS.$cssFileName;
if(file_exists($file)){
header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($file)).' GMT');
$content=file_get_contents($file);
echo($content);
}
|
What's the best way to make this compatible with JMS? Am happy to lend a hand if it is a simple enough fix? Tempted to just tinker with the $file and make it absolute....
Thanks,
Adam