protected static function checkPathsUpdate()
{
$cached = Cache::getTmpIncludePaths();
$current = PathChecker::getIncludePaths();
// Updated?
if ($cached !== $current) {
MonkeyPatchManager::log('clear_src_cache: from ' . __METHOD__);
Cache::clearSrcCache();
Cache::writeTmpIncludePaths($current);
}
$cached = Cache::getTmpExcludePaths();
$current = PathChecker::getExcludePaths();
// Updated?
if ($cached !== $current) {
MonkeyPatchManager::log('clear_src_cache: from ' . __METHOD__);
Cache::clearSrcCache();
Cache::writeTmpExcludePaths($current);
}
}