tractorcow/silverstripe-fluent — pull request #51 by uniun (2013-09-03 07:45:31+00:00)
Title: BUG. Impossible to flush the site on live environment.

Calling Session::get() before Session::start() will create an empty current Session object (look at Session::current_session()). And even SilverStripe calls Session::Start() later in /framework/main.php, Session::current_session() will return an empty "cached" Session object. So that's why permission check in /framework/main.php fails and you'll be redirected to login page.

Actually I think that this is bug on SS side but it is faster and easier to make this workaround on fluent side than to do the changes in SilverStripe. :)

P.S. I've tested 3.1.0 branch with SS 3.1.0-rc1