diff options
author | James Moger <james.moger@gitblit.com> | 2013-07-19 10:46:16 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-07-19 10:50:32 -0400 |
commit | a7db5748622e1b322b67fbbd72aed4e6efff7690 (patch) | |
tree | 90e5ff60ee365da5b32388cfd790382672dbc232 /src/main/java/com/gitblit/wicket/pages/DocsPage.java | |
parent | 0bfd34316b5903c29f93b352f0aa8e8cdce51cad (diff) | |
download | gitblit-a7db5748622e1b322b67fbbd72aed4e6efff7690.tar.gz gitblit-a7db5748622e1b322b67fbbd72aed4e6efff7690.zip |
Implemented optional page caching
Diffstat (limited to 'src/main/java/com/gitblit/wicket/pages/DocsPage.java')
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/DocsPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/DocsPage.java b/src/main/java/com/gitblit/wicket/pages/DocsPage.java index 9ddc98d3..9330316e 100644 --- a/src/main/java/com/gitblit/wicket/pages/DocsPage.java +++ b/src/main/java/com/gitblit/wicket/pages/DocsPage.java @@ -30,9 +30,12 @@ import com.gitblit.Keys; import com.gitblit.models.PathModel;
import com.gitblit.utils.ByteFormat;
import com.gitblit.utils.JGitUtils;
+import com.gitblit.wicket.CacheControl;
import com.gitblit.wicket.WicketUtils;
+import com.gitblit.wicket.CacheControl.LastModified;
import com.gitblit.wicket.panels.LinkPanel;
+@CacheControl(LastModified.REPOSITORY)
public class DocsPage extends RepositoryPage {
public DocsPage(PageParameters params) {
|