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:
parent
ff61666ead
commit
20a333cde8
3 changed files with 86 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue