Fix the issue with Assets with macro based content not showing the new content to Visitors. Fixes bug #11200.
This commit is contained in:
parent
21e1ac8da6
commit
e1c77cf314
7 changed files with 70 additions and 11 deletions
|
|
@ -31,6 +31,7 @@ my $quiet; # this line required
|
|||
my $session = start(); # this line required
|
||||
|
||||
# upgrade functions go here
|
||||
addMaxCacheOverrideSetting($session);
|
||||
|
||||
finish($session); # this line required
|
||||
|
||||
|
|
@ -44,6 +45,16 @@ finish($session); # this line required
|
|||
# print "DONE!\n" unless $quiet;
|
||||
#}
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# Describe what our function does
|
||||
sub addMaxCacheOverrideSetting {
|
||||
my $session = shift;
|
||||
print "\tAdding maximum cache timeout setting... " unless $quiet;
|
||||
# and here's our code
|
||||
$session->setting->add('maxCacheTimeout', 86400) unless $session->setting->has('maxCacheTimeout');
|
||||
print "DONE!\n" unless $quiet;
|
||||
}
|
||||
|
||||
|
||||
# -------------- DO NOT EDIT BELOW THIS LINE --------------------------------
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue