Change caching on the SQLReport to be set by its cacheTimeout, even

when viewed standalone, and not part of a page.
This commit is contained in:
Colin Kuskie 2009-05-30 18:01:59 +00:00
parent ff61666ead
commit 20a333cde8
3 changed files with 86 additions and 0 deletions

View file

@ -221,6 +221,20 @@ sub definition {
#-------------------------------------------------------------------
=head2 getContentLastModified ( )
Override the base method, since SQL Report content can change without the asset being
touched. Default to using $self->get('cacheTimeout') seconds ago.
=cut
sub getContentLastModified {
my $self = shift;
return (time - $self->get("cacheTimeout"));
}
#-------------------------------------------------------------------
=head2 getEditForm ( )
Manually make the edit form due to javascript for adding more queries.