[LON-CAPA-cvs] cvs: loncom /interface domainprefs.pm
raeburn
raeburn at source.lon-capa.org
Tue Jun 7 23:36:07 EDT 2022
raeburn Wed Jun 8 03:36:07 2022 EDT
Modified files:
/loncom/interface domainprefs.pm
Log:
- After changing trust settings update trust:domain item in memcache on
current server, and devalidate cached entry on institutions servers.
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.409 loncom/interface/domainprefs.pm:1.410
--- loncom/interface/domainprefs.pm:1.409 Sun Feb 27 01:43:14 2022
+++ loncom/interface/domainprefs.pm Wed Jun 8 03:36:07 2022
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Handler to set domain-wide configuration settings
#
-# $Id: domainprefs.pm,v 1.409 2022/02/27 01:43:14 raeburn Exp $
+# $Id: domainprefs.pm,v 1.410 2022/06/08 03:36:07 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -22784,8 +22784,10 @@
}
my $cachetime = 24*60*60;
&Apache::lonnet::do_cache_new('domdefaults',$dom,\%domdefaults,$cachetime);
+ &Apache::lonnet::do_cache_new('trust',$dom,$defaultshash{'trust'},3600);
if (ref($lastactref) eq 'HASH') {
$lastactref->{'domdefaults'} = 1;
+ $lastactref->{'trust'} = 1;
}
if (keys(%changes) > 0) {
my %lt = &trust_titles();
@@ -23854,7 +23856,7 @@
map { $thismachine{$_} = 1; } &Apache::lonnet::current_machine_ids();
my @posscached = ('domainconfig','domdefaults','ltitools','usersessions',
'directorysrch','passwdconf','cats','proxyalias','proxysaml',
- 'ipaccess');
+ 'ipaccess','trust');
my %cache_by_lonhost;
if (exists($cachekeys->{'samllanding'})) {
if (ref($cachekeys->{'samllanding'}) eq 'HASH') {
More information about the LON-CAPA-cvs
mailing list