From: jerome <jerome>
Date: Wed, 3 Sep 2008 09:53:35 +0000 (+0000)
Subject: MDL-15402: change repository_cache_expire common option default to 120 (minutes)
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4f2b9a4feda097af7599dc22633163fd116b906f;p=moodle.git

MDL-15402: change repository_cache_expire common option default to 120 (minutes)
---

diff --git a/admin/settings/plugins.php b/admin/settings/plugins.php
index ae43b07bf8..622edc725f 100644
--- a/admin/settings/plugins.php
+++ b/admin/settings/plugins.php
@@ -186,10 +186,10 @@ if ($hassiteconfig) {
     $temp->add(new admin_setting_heading('managerepositories', get_string('activerepository', 'repository'), ''));
     $temp->add(new admin_setting_managerepository());
     $temp->add(new admin_setting_heading('managerepositoriescommonheading', get_string('commonsettings', 'admin'), ''));
-    $temp->add(new admin_setting_configtext('repository_cache_expire', get_string('cacheexpire', 'repository'), get_string('configcacheexpire', 'repository'), 0));
+    $temp->add(new admin_setting_configtext('repository_cache_expire', get_string('cacheexpire', 'repository'), get_string('configcacheexpire', 'repository'), 120));
     $ADMIN->add('repositorysettings', $temp);
-    $ADMIN->add('repositorysettings', new admin_externalpage('repositorynew', 
-        get_string('createrepository', 'repository'), $url, 'moodle/site:config', true), 
+    $ADMIN->add('repositorysettings', new admin_externalpage('repositorynew',
+        get_string('createrepository', 'repository'), $url, 'moodle/site:config', true),
         '', $url);
     $ADMIN->add('repositorysettings', new admin_externalpage('repositorydelete',
         get_string('deleterepository', 'repository'), $url, 'moodle/site:config', true),
diff --git a/lang/en_utf8/repository.php b/lang/en_utf8/repository.php
index e80b1e04b6..20e7d75236 100644
--- a/lang/en_utf8/repository.php
+++ b/lang/en_utf8/repository.php
@@ -8,7 +8,7 @@ $string['back'] = '&lt; Back';
 $string['cacheexpire'] = 'Cache expire';
 $string['close'] = 'Close';
 $string['copying'] = 'Copying';
-$string['configcacheexpire'] = 'Configurate the cache expired time.';
+$string['configcacheexpire'] = 'Configurate the cache expired time (in minutes).';
 $string['configsaved'] = 'Configuration saved!';
 $string['confirmdelete'] = 'Are you sure you want to delete this repository - $a?';
 $string['confirmremove'] = 'Are you sure you want to remove this repository plugin - $a?';