Closed DinisCruz closed 8 years ago
done
project_Files: (id)=>
return cache_project_Files if cache_project_Files # return cached version if exists
result = []
project = @.projects()[id] # get list of projects
if project # if project object exist
for file in project.path_Teams.files_Recursive() # find all files recursively (so that folders can be used to organise files)
if file.file_Extension() in ['.json', '.coffee'] # only support .json and .coffee files
result.push file
return (cache_project_Files = result) # cache results in cache_project_Files
in here there is the root cause of "Performance issue on multiple Data_Project methods #167