<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Page comments</title>
		<link>http://www.silverstripe.org/home/</link>
		<atom:link href="http://www.silverstripe.org/home/" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9062</link>
			<description>I like both solutions, thank you.<br /><br />If you use an exact hostname for domain matching you have to allow more than one hostname:<br /><br />Host: [&amp;quot;example.com&amp;quot;, &amp;quot;www.example.com&amp;quot;]<br /><br />or<br /><br />Host: &amp;quot;beta.example.com&amp;quot;<br /><br />=&amp;gt;<br /><br />if (!empty($cfg-&amp;gt;Only-&amp;gt;Host)) {<br />   if (is_array($cfg-&amp;gt;Only-&amp;gt;Host)) {<br />      return in_array($_SERVER[&#39;HTTP_HOST&#39;], $cfg-&amp;gt;Only-&amp;gt;Host);<br />   } else {<br />      return $_SERVER[&#39;HTTP_HOST&#39;] == $cfg-&amp;gt;Only-&amp;gt;Host;<br />   }<br />}<br /><br />Another solution is drupal&#39;s folder hierachy: http://drupal.org/node/53705 (I know drupal ist evil :D)<br /><br />Or a RegExp witch will be mutch faster than parsing the url structure ... (because it is native C)<br /><br />Host: /^(www\.)?example\.(com|net)$/i<br /><br /><br />&amp;gt; 3) Just keep using _config.php where you have to. There are cases where you need to make decisions that aren&#39;t one of the ones supported by the configuration system. I purposely only support the most common, again to balance features versus performance.<br /><br />I haven&#39;t found a Config class on GitHub yet ... so will it possible to relay on old _config.php syntax and write something like: Config::set(&#39;MyClass.Foobar&#39;, &#39;Baz&#39;, array(&#39;After&#39; =&amp;gt; &#39;mysite/#blar&#39;)); instead of using MyClass::set_option() ?<br /></description>
			<pubDate>Fri, 16 Dec 2011 02:02:34 +1300</pubDate>
			<dc:creator>Dominik Beerbohm</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9062</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9061</link>
			<description>Hi Hamish,<br /><br />A big &amp;quot;Thank You&amp;quot; for sharing your ideas. <br /><br />I am really happy to be updated on the improvements in Silverstripe 3 with some detailed technical/practical infos.<br /><br />What is the realistic ETA of 3.0?<br /><br />Greetings,<br />Hendrik</description>
			<pubDate>Fri, 16 Dec 2011 00:51:07 +1300</pubDate>
			<dc:creator>Hendrik Schaper</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9061</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9058</link>
			<description>Hi All,<br /><br />Couple of issues with the code images. Getting them sorted now.<br /><br />@Joel - hopefully the changed image will make things clearer? The &amp;quot;Before&amp;quot; line says &amp;quot;the block of configuration immediately below should come before the one I&#39;m naming here&amp;quot;<br /><br />@Dominik - currently that&#39;s not supported. Three options: <br /><br />1) It&#39;s probably a pretty common use case, so I could add support like https://gist.github.com/1478799 - but for max efficiency that would only work for exact matches against the host name, not partial matches.<br /><br />2) You could configure like https://gist.github.com/1478812 - then write a method on OurWebServiceClass called getWebserviceBaseURL that does the match against HTTP_HOST and gives the right value.<br /><br />3) Just keep using _config.php where you have to. There are cases where you need to make decisions that aren&#39;t one of the ones supported by the configuration system. I purposely only support the most common, again to balance features versus performance.<br /><br />@Frank - sorry, there actually wasn&#39;t a difference because the same image was posted twice. Should be fixed soon.</description>
			<pubDate>Thu, 15 Dec 2011 11:22:16 +1300</pubDate>
			<dc:creator>Hamish Friedlander</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9058</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9056</link>
			<description>Hi Hamish<br /><br />I&#39;m really sorry, but it is really not clear to me that cms/_config/routes.yml overrides the settings in framework/_config/routes.yml!?<br /><br />I guess I&#39;m stupied, but I&#39;ve tried to read your explanation many times without luck.<br /><br />I really do like the fact though that SilverStripe 3 will become faster... </description>
			<pubDate>Thu, 15 Dec 2011 05:37:52 +1300</pubDate>
			<dc:creator>Joel Grøndrup</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9056</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9055</link>
			<description>Sweet!<br /><br />Remind me: Why do we need the double slashes?</description>
			<pubDate>Thu, 15 Dec 2011 01:48:46 +1300</pubDate>
			<dc:creator>Philipp</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9055</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9053</link>
			<description>We frequently use something like this in our config files:<br /><br />if (strpos($_SERVER[&#39;HTTP_HOST&#39;], &#39;localnet&#39;)) {<br />    OurWebServiceClass::set_base_url(&#39;http://sandbox.example-webservice.com/&#39;);<br />} else {<br />    OurWebServiceClass::set_base_url(&#39;http://live.example-webservice.com/&#39;);<br />}<br /><br />So we don&#39;t have to change the config files on upload to the live system.<br />Relying on Director::isDev() is no solution here.<br /><br /><br />How we can realize this with the new config system?</description>
			<pubDate>Wed, 14 Dec 2011 20:36:00 +1300</pubDate>
			<dc:creator>Dominik Beerbohm</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9053</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9051</link>
			<description>I&#39;m having trouble spotting the difference between the two framework routes.yml files...</description>
			<pubDate>Wed, 14 Dec 2011 17:55:36 +1300</pubDate>
			<dc:creator>Frank</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9051</guid>
		</item>
		
		<item>
			<title></title>
			<link>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9050</link>
			<description>Hamish - I am really looking forward to using this new system. </description>
			<pubDate>Wed, 14 Dec 2011 17:16:35 +1300</pubDate>
			<dc:creator>nicolaas</dc:creator>
			<guid>http://www.silverstripe.org/speeding-up-silverstripe-with-the-configuration-system/#PageComment_9050</guid>
		</item>
		

	</channel>
</rss>