From 4949d10da29172f2dba462fe53314de8bdce475f Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 4 Oct 2007 19:58:08 +0000 Subject: [PATCH] CS says it always has new content for cache time --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset/Post.pm | 6 ++++++ lib/WebGUI/Asset/Wobject/Collaboration.pm | 6 ++++++ 3 files changed, 13 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index d577e9d96..c2a683903 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fix: graphing doesn't work with GraphicsMagick - fix: Calendar generated iCal for last 30 days instead of next 30 days - fix: hover help doesn't appear for matrix fields + - Collaboration systems should always tell browser there is new content 7.4.8 - fix: Syndicated Content doesn't display all items with multiple feeds in interleaved mode diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index c92f1e435..76ea595ab 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -311,6 +311,12 @@ sub formatContent { return $msg; } +#------------------------------------------------------------------- +# Too slow to try to find out children, just always assume new data +sub getContentLastModified { + return time(); +} + #------------------------------------------------------------------- sub getAutoCommitWorkflowId { my $self = shift; diff --git a/lib/WebGUI/Asset/Wobject/Collaboration.pm b/lib/WebGUI/Asset/Wobject/Collaboration.pm index a0d3c8921..0d47a5108 100644 --- a/lib/WebGUI/Asset/Wobject/Collaboration.pm +++ b/lib/WebGUI/Asset/Wobject/Collaboration.pm @@ -753,6 +753,12 @@ sub duplicate { return $newAsset; } +#------------------------------------------------------------------- +# Too slow to try to find out children, just always assume new data +sub getContentLastModified { + return time(); +} + #------------------------------------------------------------------- sub getEditTabs { my $self = shift;