From 143018b5aa87e936203aef04f24e670142210542 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 19 Oct 2019 08:20:00 +0800 Subject: [PATCH] remove caches from html template --- main.cpp | 1 + src/page.h | 1 - src/templates/index2.html | 11 ----------- src/templates/partials/tx_details.html | 14 -------------- 4 files changed, 1 insertion(+), 26 deletions(-) diff --git a/main.cpp b/main.cpp index d90fcff..0b1815e 100644 --- a/main.cpp +++ b/main.cpp @@ -41,6 +41,7 @@ struct jsonresponse: public crow::response int main(int ac, const char* av[]) { + // get command line options xmreg::CmdLineOptions opts {ac, av}; diff --git a/src/page.h b/src/page.h index b4bbfb1..c74c8cb 100644 --- a/src/page.h +++ b/src/page.h @@ -700,7 +700,6 @@ index2(uint64_t page_no = 0, bool refresh_page = false) uint64_t tx_i {0}; - // this vector will go into block_tx cache // tx_hash , txd_map vector> txd_pairs; diff --git a/src/templates/index2.html b/src/templates/index2.html index 8e6f96c..7c39a2c 100644 --- a/src/templates/index2.html +++ b/src/templates/index2.html @@ -111,14 +111,3 @@ - -{{#show_cache_times}} -
-
- Tx details construction time: {{construction_time_total}} s -
- includes {{construction_time_cached}} s from block cache ({{cache_hits}} hits) - and {{construction_time_non_cached}} s from non cache ({{cache_misses}} misses) -
-
-{{/show_cache_times}} diff --git a/src/templates/partials/tx_details.html b/src/templates/partials/tx_details.html index 5701842..7da9d24 100644 --- a/src/templates/partials/tx_details.html +++ b/src/templates/partials/tx_details.html @@ -300,18 +300,4 @@ {{/with_ring_signatures}} {{/have_raw_tx}} - -{{#show_cache_times}} -
- {{#construction_time}} -
- Tx details construction time: {{construction_time}} s - {{#from_cache}} -
Tx read from the tx cache - {{/from_cache}} -
- {{/construction_time}} -
-{{/show_cache_times}} -