Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removing cache hits, as App::core() is almost always called before Ca…
…che is initialized, as Cache uses App::core to load the first configured engine. This Cache::read call can never succeed so it should be removed.
  • Loading branch information
markstory committed Nov 22, 2010
1 parent fdcfd03 commit 2d21e9c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cake/libs/app.php
Expand Up @@ -324,9 +324,6 @@ public static function themePath($theme) {
*/
public static function core($type = null) {
static $paths = false;
if ($paths === false) {
$paths = Cache::read('core_paths', '_cake_core_');
}
if (!$paths) {
$paths = array();
$libs = dirname(__FILE__) . DS;
Expand All @@ -347,8 +344,6 @@ public static function core($type = null) {
$paths['shells'][] = $cake . 'console' . DS . 'shells' . DS;
// Provide BC path to vendors/shells
$paths['shells'][] = $path . 'vendors' . DS . 'shells' . DS;

Cache::write('core_paths', array_filter($paths), '_cake_core_');
}
if ($type && isset($paths[$type])) {
return $paths[$type];
Expand Down

0 comments on commit 2d21e9c

Please sign in to comment.