Exposed a Cache API and moved page caching settings from the config file to the UI.
This commit is contained in:
parent
2b7b9ea4d2
commit
c3c06514f3
6 changed files with 218 additions and 12 deletions
|
|
@ -99,6 +99,20 @@ sub www_editContentSettings {
|
|||
$f->integer("textAreaRows",WebGUI::International::get(463),$session{setting}{textAreaRows});
|
||||
$f->integer("textAreaCols",WebGUI::International::get(464),$session{setting}{textAreaCols});
|
||||
$f->integer("textBoxSize",WebGUI::International::get(465),$session{setting}{textBoxSize});
|
||||
my @data = WebGUI::DateTime::secondsToInterval($session{setting}{cachePages});
|
||||
$f->interval(
|
||||
-name=>"cachePages",
|
||||
-label=>WebGUI::International::get(895),
|
||||
-intervalValue=>$data[0],
|
||||
-unitsValue=>$data[1]
|
||||
);
|
||||
my @data = WebGUI::DateTime::secondsToInterval($session{setting}{cachePagesVisitor});
|
||||
$f->interval(
|
||||
-name=>"cachePagesVisitor",
|
||||
-label=>WebGUI::International::get(896),
|
||||
-intervalValue=>$data[0],
|
||||
-unitsValue=>$data[1]
|
||||
);
|
||||
$f->submit;
|
||||
$output .= $f->print;
|
||||
return _submenu($output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue