More efficient file exists check
This commit is contained in:
parent
22994e8373
commit
d225fb428c
1 changed files with 4 additions and 4 deletions
|
|
@ -231,10 +231,10 @@ sub process {
|
|||
unless (-f $file->getPath) {
|
||||
($template) = WebGUI::SQL->quickArray("select template from template where templateId=".$templateId." and namespace=".quote($namespace),WebGUI::SQL->getSlave);
|
||||
$file->saveFromScalar($template);
|
||||
}
|
||||
unless (-f $file->getPath) {
|
||||
WebGUI::ErrorHandler::warn("Could not create file ".$file->getPath."\nTemplate file caching is disabled");
|
||||
$params{scalarref} = \$template;
|
||||
unless (-f $file->getPath) {
|
||||
WebGUI::ErrorHandler::warn("Could not create file ".$file->getPath."\nTemplate file caching is disabled");
|
||||
$params{scalarref} = \$template;
|
||||
}
|
||||
}
|
||||
return _execute(\%params,$vars);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue