MDL-42016 repository: Simplify API to sync external files

Too many functions, too different parameters, unnecessary DB queries.
All repositories developed for Moodle 2.3-2.5 will continue to work.

Also get rid of DB field files_reference.lifetime, it is not used by
anybody except repository itself.
This commit is contained in:
Marina Glancy
2013-10-06 18:05:09 +11:00
parent 2a68ee0eb1
commit 873555604f
10 changed files with 238 additions and 165 deletions
-3
View File
@@ -201,9 +201,6 @@ class phpunit_util extends testing_util {
events_get_handlers('reset');
core_text::reset_caches();
get_message_processors(false, true);
if (class_exists('repository')) {
repository::reset_caches();
}
filter_manager::reset_caches();
//TODO MDL-25290: add more resets here and probably refactor them to new core function