1 |
commit: dde00b9622167e740ba3232eb9678aad47a19f03 |
2 |
Author: Slava Bacherikov <slava <AT> bacher09 <DOT> org> |
3 |
AuthorDate: Tue Jul 31 14:18:40 2012 +0000 |
4 |
Commit: Slava Bacherikov <slava <AT> bacherikov <DOT> org <DOT> ua> |
5 |
CommitDate: Tue Jul 31 14:18:40 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gentoo-packages.git;a=commit;h=dde00b96 |
7 |
|
8 |
Add simple cache |
9 |
|
10 |
--- |
11 |
gpackages/templates/categories.html | 4 +++- |
12 |
gpackages/templates/global_use.html | 5 +++-- |
13 |
gpackages/templates/herds.html | 4 ++++ |
14 |
gpackages/templates/license_groups.html | 6 ++++-- |
15 |
4 files changed, 14 insertions(+), 5 deletions(-) |
16 |
|
17 |
diff --git a/gpackages/templates/categories.html b/gpackages/templates/categories.html |
18 |
index 52cfd1f..ebd2116 100644 |
19 |
--- a/gpackages/templates/categories.html |
20 |
+++ b/gpackages/templates/categories.html |
21 |
@@ -1,8 +1,9 @@ |
22 |
{% extends "base.html" %} |
23 |
{% load url from future %} |
24 |
+{% load cache %} |
25 |
|
26 |
{% block content %} |
27 |
- |
28 |
+{% cache 3600 categories_table %} |
29 |
<table class='table table-striped table-hover'> |
30 |
<colgroup> |
31 |
<col class="span1" > |
32 |
@@ -23,5 +24,6 @@ |
33 |
{% endfor %} |
34 |
</tbody> |
35 |
</table> |
36 |
+{% endcache %} |
37 |
|
38 |
{% endblock content %} |
39 |
|
40 |
diff --git a/gpackages/templates/global_use.html b/gpackages/templates/global_use.html |
41 |
index fce42fb..bc7354d 100644 |
42 |
--- a/gpackages/templates/global_use.html |
43 |
+++ b/gpackages/templates/global_use.html |
44 |
@@ -1,8 +1,9 @@ |
45 |
{% extends "base.html" %} |
46 |
{% load url from future %} |
47 |
+{% load cache %} |
48 |
|
49 |
{% block content %} |
50 |
- |
51 |
+{% cache 1800 global_use_table %} |
52 |
<table class='table table-striped table-hover'> |
53 |
<colgroup> |
54 |
<col class="span1" > |
55 |
@@ -23,5 +24,5 @@ |
56 |
{% endfor %} |
57 |
</tbody> |
58 |
</table> |
59 |
- |
60 |
+{% endcache %} |
61 |
{% endblock content %} |
62 |
|
63 |
diff --git a/gpackages/templates/herds.html b/gpackages/templates/herds.html |
64 |
index b767967..45814ab 100644 |
65 |
--- a/gpackages/templates/herds.html |
66 |
+++ b/gpackages/templates/herds.html |
67 |
@@ -1,8 +1,11 @@ |
68 |
{% extends "base.html" %} |
69 |
{% load packages %} |
70 |
{% load url from future %} |
71 |
+{% load cache %} |
72 |
+ |
73 |
{% block content %} |
74 |
|
75 |
+{% cache 1800 herds_table %} |
76 |
<table class='table table-striped table-hover'> |
77 |
<colgroup> |
78 |
<col class="span1" > |
79 |
@@ -27,5 +30,6 @@ |
80 |
{% endfor %} |
81 |
</tbody> |
82 |
</table> |
83 |
+{% endcache %} |
84 |
|
85 |
{% endblock content %} |
86 |
|
87 |
diff --git a/gpackages/templates/license_groups.html b/gpackages/templates/license_groups.html |
88 |
index 985c670..080c7fc 100644 |
89 |
--- a/gpackages/templates/license_groups.html |
90 |
+++ b/gpackages/templates/license_groups.html |
91 |
@@ -1,7 +1,9 @@ |
92 |
{% extends "base.html" %} |
93 |
{% load url from future %} |
94 |
-{% block content %} |
95 |
+{% load cache %} |
96 |
|
97 |
+{% block content %} |
98 |
+{% cache 3600 license_groups %} |
99 |
<table class='table table-striped table-hover'> |
100 |
<colgroup> |
101 |
<col class="span1" > |
102 |
@@ -22,5 +24,5 @@ |
103 |
{% endfor %} |
104 |
</tbody> |
105 |
</table> |
106 |
- |
107 |
+{% endcache %} |
108 |
{% endblock content %} |