From 3643706a2e9a0cef3c75ec82a6609726ab3421c7 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Fri, 23 Oct 2009 08:25:58 -0700 Subject: [PATCH] Apply local fix for Kohana ticket 2276. --- system/core/Kohana.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/system/core/Kohana.php b/system/core/Kohana.php index c934b12b..8027975d 100644 --- a/system/core/Kohana.php +++ b/system/core/Kohana.php @@ -325,6 +325,14 @@ final class Kohana { // Add SYSPATH as the last path self::$include_paths[] = SYSPATH; + + // Local fix for Kohana Ticket:2276 + self::$internal_cache['find_file_paths'] = array(); + if ( ! isset(self::$write_cache['find_file_paths'])) + { + // Write cache at shutdown + self::$write_cache['find_file_paths'] = TRUE; + } } return self::$include_paths;