diff --git a/docs/upgrades/upgrade_5.1.2-5.2.0.sql b/docs/upgrades/upgrade_5.1.2-5.2.0.sql
index a4a04293d..5f0a6ae72 100644
--- a/docs/upgrades/upgrade_5.1.2-5.2.0.sql
+++ b/docs/upgrades/upgrade_5.1.2-5.2.0.sql
@@ -3342,6 +3342,8 @@ delete from international where languageId=1 and namespace='WebGUI' and internat
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (891,1,'WebGUI','Only negate macros.', 1047838859);
delete from international where languageId=1 and namespace='WebGUI' and internationalId=526;
insert into international (internationalId,languageId,namespace,message,lastUpdated) values (526,1,'WebGUI','Remove JavaScript and negate macros.', 1047838780);
+delete from international where languageId=1 and namespace='WebGUI' and internationalId=634;
+insert into international (internationalId,languageId,namespace,message,lastUpdated) values (634,1,'WebGUI','Default Home Page
\r\nSome really small sites don\'t have a home page, but instead like to use one of their internal pages like "About Us" or "Company Information" as their home page. For that reason, you can set the default page of your site to any page in the site. That page will be the one people go to if they type in just your URL http://www.mywebguisite.com, or if they click on the Home link generated by the ^H; macro.\r\n
\r\n\r\nNot Found Page
\r\nIf a page that a user requests is not found in the system, the user can be redirected to the home page or to an error page where they can attempt to find what they were looking for. You decide which is better for your users.\r\n
\r\n\r\nDocument Type Declaration
\r\nThese days it is very common to have a wide array of browsers accessing your site, including automated browsers like search engine spiders. Many of those browsers want to know what kind of content you are serving. The doctype tag allows you to specify that. By default WebGUI generates HTML 4.0 compliant content.\r\n
\r\n\r\nAdd edit stamp to posts?
\r\nTypically if a user edits a post on a discussion, a stamp is added to that post to identify who made the edit, and at what time. On some sites that information is not necessary, therefore you can turn it off here.\r\n
\r\n\r\nFilter Contributed HTML
\r\nEspecially when running a public site where anybody can post to your message boards or user submission systems, it is often a good idea to filter their content for malicious code that can harm the viewing experience of your visitors; And in some circumstances, it can even cause security problems. Use this setting to select the level of filtering you wish to apply.\r\n
\r\n\r\nMaximum Attachment Size
\r\nThe size (in kilobytes) of the maximum allowable attachment to be uploaded to your system.\r\n
\r\n\r\nMax Image Size
\r\nIf images are uploaded to your system that are bigger than the max image size, then they will be resized to the max image size. The max image size is measured in pixels and will use the size of the longest side of the image to determine if the limit has been reached.\r\n
\r\n\r\nThumbnail Size
\r\nWhen images are uploaded to your system, they will automatically have thumbnails generated at the size specified here (unless overridden on a case-by-case basis). Thumbnail size is measured in pixels.\r\n
\r\n\r\nSnippet Preview Length
\r\nHow many characters of a snippet should be displayed in the collateral management system main listing.\r\n
\r\n\r\nText Area Columns
\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how many columns of characters will be displayed in textareas on the site.\r\n
\r\n\r\nText Box Size
\r\nSome sites wish to control the size of the forms that WebGUI generates. With this setting you can specify how characters can be displayed at once in text boxes on the site.\r\n
\r\n\r\nPage Cache Timeout
\r\nThe amount of time pages should remain cached for registered users.\r\n
\r\n\r\nPage Cache Timeout (Visitors)
\r\nThe amount of time pages should remain cached for visitors.\r\n
\r\n\r\nNOTE: Page caching is only available if your administrator has installed the Cache::FileCache Perl module. Using page caching can improve site performance by as much as 1000%.', 1047841522); diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 295655b42..c1aec5a71 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -224,7 +224,7 @@ sub _processOperations { sub page { my ($cache, $debug, $positions, $wobjectOutput, $pageEdit, $httpHeader, $content, $operationOutput, $template); WebGUI::Session::open($_[0],$_[1]); - my $useCache = ($session{form}{op} eq "" && $session{form}{wid} eq "" && not $session{var}{adminOn}); + my $useCache = ($session{form}{op} eq "" && $session{form}{wid} eq "" && $session{form}{makePrintable} eq "" && not $session{var}{adminOn}); if ($useCache) { $cache = WebGUI::Cache->new("page_".$session{page}{pageId}."_".$session{user}{userId}); $content = $cache->get;