From 3d5092aed10fab10046595df2b4a35bde56150f0 Mon Sep 17 00:00:00 2001 From: Kedar Aitawdekar Date: Wed, 13 May 2015 20:12:04 +0530 Subject: Template level memcache added --- .../gnowsys_ndf/ndf/templates/ndf/UploadDoc.html | 7 +- .../gnowsys_ndf/ndf/templates/ndf/add_editor.html | 10 +- .../gnowsys_ndf/ndf/templates/ndf/base.html | 33 +++---- .../ndf/templates/ndf/collection_ajax_view.html | 3 + .../ndf/templates/ndf/create_forum.html | 29 +++--- .../ndf/templates/ndf/create_group.html | 8 +- .../ndf/templates/ndf/create_partner.html | 12 ++- .../ndf/templates/ndf/create_sub_group.html | 4 + .../ndf/templates/ndf/create_thread.html | 11 ++- .../ndf/templates/ndf/data_review_table.html | 7 ++ .../gnowsys_ndf/ndf/templates/ndf/discussion.html | 3 +- .../gnowsys_ndf/ndf/templates/ndf/edit_forum.html | 5 + .../gnowsys_ndf/ndf/templates/ndf/file.html | 2 +- .../ndf/templates/ndf/graph_collection.html | 6 ++ .../ndf/templates/ndf/group_dashboard.html | 6 +- .../ndf/templates/ndf/groupdashboard.html | 4 + .../gnowsys_ndf/ndf/templates/ndf/header.html | 32 +++++-- .../ndf/templates/ndf/landing_page_nroer.html | 105 +-------------------- .../gnowsys_ndf/ndf/templates/ndf/map_widget.html | 23 +++-- .../ndf/templates/ndf/node_ajax_view.html | 9 ++ .../ndf/templates/ndf/node_details_base.html | 2 +- .../ndf/templates/ndf/node_edit_base.html | 21 ++++- .../gnowsys_ndf/ndf/templates/ndf/repository.html | 6 +- .../gnowsys_ndf/ndf/templates/ndf/theme.html | 13 ++- 24 files changed, 186 insertions(+), 175 deletions(-) diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/UploadDoc.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/UploadDoc.html index b20d8e0..a7ed082 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/UploadDoc.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/UploadDoc.html @@ -1,5 +1,7 @@ {% extends "ndf/base.html" %} {% load i18n %} +{% load cache %} + {% load ndf_tags %} {% block title %} Upload Document {% endblock %} @@ -66,6 +68,7 @@
{% trans "Select Language" %} + {% cache 600 upload_doc_language request.LANGUAGE %}
+ + + {% endcache %}
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/add_editor.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/add_editor.html index f7bf698..0a25a4b 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/add_editor.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/add_editor.html @@ -1,13 +1,17 @@ {% load ndf_tags %} +{% load i18n %} +{% load cache %} + {% get_group_name groupid as group_name_tag %} -{% load i18n %} +{% cache 3600 editor_static_files %} +{% endcache %} @@ -63,7 +55,7 @@ {% check_accounts_url request.path as is_ac_url %} {% include "ndf/header.html" %} - +
@@ -128,13 +120,16 @@
- + + {% cache 360 footer request.LANGUAGE_CODE %} {% include "ndf/footer.html" with site=site %} - + + {% endcache %} + + {% endcache %} + + {% endcache %} diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html index 1cc4043..fea071f 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/node_ajax_view.html @@ -1,7 +1,11 @@ {% load ndf_tags %} {% load i18n %} +{% load cache %} + {% get_group_name groupid as group_name_tag %} +{% cache 360 node_ajax_view request.LANGUAGE_CODE %} + -{% endblock %} \ No newline at end of file +{% endblock %} +{% endcache %} \ No newline at end of file diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html index 8fe71b7..dac786a 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html +++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/theme.html @@ -1,5 +1,6 @@ {% extends "ndf/base.html" %} {% load i18n %} +{% load cache %} {% load ndf_tags %} {% load pagination_tags %} @@ -471,11 +472,13 @@
{% if node %} + {% cache 300 theme_tree node.name request.LANGUAGE_CODE %} -
+
{% include 'ndf/theme_drag_zoom_d3tree.html' %} + {% endcache %} {% endif %} @@ -484,7 +487,8 @@ {% if themes_cards %} - + {% cache 300 theme_card_listing request.LANGUAGE_CODE %} +
    @@ -543,8 +547,9 @@
- - + + {% endcache %} + {% endif %} {% if themes_list_items %} -- cgit v1.1