Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Incorrect Environment::is() in bootstrap/cache.php #595
I notice that doing an Environment::is('development') in the filter of cache.php returns false even if I'm in a development context (this was checked with a call of Environment::is('development') in a controller).
The reason is that the file cache.php in included before action.php.
Ok, so why there is some code that depends on the environment in the framework/app/config/bootstrap/cache.php ?
Anyway I think this code is necessary to disable cache on production environment. And the code is in a filter so it can work just by switching the action.php include and cache.php include
This should be reopened.
I see a lot of guys starting with Lithium in IRC, being confused about why their test class or custom Form helper that doesn't show up.
To avoid writing heavy code depending on the environment everywhere in the bootstrap, why not clarifying things by adding a