@@ 72-79 (lines=8) @@ | ||
69 | ||
70 | $chachedClassPath = null; |
|
71 | ||
72 | if (file_exists($cacheFile)) { |
|
73 | ||
74 | $chachedClassPath = unserialize(file_get_contents($cacheFile)); |
|
75 | ||
76 | if (is_array($chachedClassPath)) { |
|
77 | $this->classPath = $chachedClassPath + $this->classPath; |
|
78 | } |
|
79 | } |
|
80 | ||
81 | if (!is_array($chachedClassPath)) { |
|
82 | $this->rebuildClassPathCache($this->corePluginDir, $cacheFile); |
|
@@ 183-188 (lines=6) @@ | ||
180 | $cacheFile = $this->cacheDir . 'classpath-' . substr(strtr($pluginDir, '/\\:' . PATH_SEPARATOR, '----'), |
|
181 | strlen($pluginDir) > 80 ? - 80 : 0) . '.d' . Core::RELEASE_TAG . '.php'; |
|
182 | $this->paths[$pluginDir] = $cacheFile; |
|
183 | if (file_exists($cacheFile)) { |
|
184 | $classpath = file_get_contents($cacheFile); |
|
185 | $this->classPath = unserialize($classpath) + $this->classPath; |
|
186 | } else { |
|
187 | $this->rebuildClassPathCache($pluginDir, $cacheFile); |
|
188 | } |
|
189 | } |
|
190 | } |
|
191 |