Posted by entrigan on September 11, 2010 at 11:12pm
I could not figure out how to change my caching settings on my aegir sites. I would go to admin/settings/performance, change the settings, hit save, it would respond that it worked, but the settings would remain unchanged. mrfelton thankfully explained that I could change these settings by editing ~/config/includes/global.inc where ~ is the aegir user's home dir. To disable caching:
$conf['preprocess_css'] = 0;
$conf['preprocess_js'] = 0;
$conf['cache'] = 0;Not sure if this is a bug or feature, does anyone know why this is the case?

Comments
I am having this same problem
I am having this same problem with both a new install of Alpha 13 and an upgrade from 11. In my case I need to disable the css optimization for one site so I can make changes and debug the css. By changing the global.inc all the sites for that platform would have their performance disabled.
Create a file called
Create a file called local.settings.php in the same directory as settings.php for the site and with the same permissions.
You'll see at the end of settings.php it is included if it exists:
# Additional site configuration settings.if (file_exists('/var/aegir/platforms/myplatform/sites/mysite.com/local.settings.php')) {
include_once('/var/aegir/platforms/myplatform/sites/mysite.com/local.settings.php');
}
The local.settings.php gets
The local.settings.php gets called after the global.inc. In my case these settings where set in the global.inc so I could not use the local.settings.php to change the values. Commenting these lines out of global.inc worked:
$conf['preprocess_css'] = 1;
$conf['preprocess_js'] = 1;
$conf['cache'] = 1;
and then allowed me to control the cache per site.
Thx for the solution. Same
Thx for the solution.
Same problem here - I like being able to set the cache per site in sites/www.example.com/settings.php,
Having this set globally is slightly annoying .. although, perhaps there's a cache setting in the Aegir interface that controls this?
Per site config files
You can implement your own module which creates per site config directives. A good example is this blog post by devseed - http://developmentseed.org/blog/2010/oct/12/leveraging-aegir-deploying-d...
where aegir overrides core settings, it needs to be documented
I ran into this issue when testing out D7. Thought I had hit a bug in D7 core when I couldn't turn off cache, but it was aegir helpfully overriding stuff for me. This stuff needs to be documented better.
Anyone know why exactly Aegir
Anyone know why exactly Aegir does this?
I believe that Aegir put a
I believe that Aegir put a config line in setting.php with $conf['cache'] = '1'. And even if you change this it isn't going to stay permanent, because Aegir creates new settings file periodical. And because of this line you can not change this over Drupal 6/7 administration pages.
if you don't need caching you should change Aegir's template file for settings.php or create an local file for you site inside your sites folder whit override statements. Than you add some PHP code to the template of settings.php to read site's local settings file.
And of course, you can unset $conf['cache'] index from $conf variable.
I hope it helps.
Recenty versions of Aegir
Recent versions of Aegir read local.settings.php at the bottom of settings.php -- so you could just override in local.settings.php.
yes and no
Yes you can do that, but the real problem is losing the ability to configure a Drupal feature in the UI.
Resolved
I found the issue http://drupal.org/node/984396#comment-4014538
Turns out it's been in since 2008, I didn't notice it until I first had to work with a site as seen by anonymous users.
Miguel has removed it from head to see if it breaks anything. This means that a future update to Aegir will possibly turn off your anonymous caching for all your sites, so either set it now in global.inc, or set it in the database.