Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
guru
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
guru
Commits
bd20352d
Commit
bd20352d
authored
Oct 20, 2018
by
Clint Mourlevat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing response cache bug
parent
f7452c5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
BlockExplorerController.cs
Stratis.Guru/Controllers/BlockExplorerController.cs
+1
-1
HomeController.cs
Stratis.Guru/Controllers/HomeController.cs
+0
-6
Startup.cs
Stratis.Guru/Startup.cs
+6
-0
No files found.
Stratis.Guru/Controllers/BlockExplorerController.cs
View file @
bd20352d
...
...
@@ -25,7 +25,7 @@ namespace Stratis.Guru.Controllers
_stats
=
JsonConvert
.
DeserializeObject
(
_memoryCache
.
Get
(
"BlockchainStats"
).
ToString
());
}
[
ResponseCache
(
Duration
=
60
)]
[
ResponseCache
(
Duration
=
60
,
NoStore
=
true
)]
public
IActionResult
Index
()
{
var
latestBlockClient
=
new
RestClient
(
$"
{
_nakoApiSettings
.
Endpoint
}
query/block/Latest/transactions"
);
...
...
Stratis.Guru/Controllers/HomeController.cs
View file @
bd20352d
...
...
@@ -44,12 +44,6 @@ namespace Stratis.Guru.Controllers
return
View
();
}
[
Route
(
"contact"
)]
public
IActionResult
Contact
()
{
return
View
();
}
[
Route
(
"vanity"
)]
public
IActionResult
Vanity
()
{
...
...
Stratis.Guru/Startup.cs
View file @
bd20352d
...
...
@@ -49,6 +49,12 @@ namespace Stratis.Guru
//services.AddHostedService<VanityService>();
services
.
AddTransient
<
UpdateHub
>();
services
.
AddSingleton
<
IAsk
,
Ask
>();
services
.
AddResponseCaching
(
options
=>
{
options
.
UseCaseSensitivePaths
=
true
;
options
.
MaximumBodySize
=
1024
;
});
services
.
AddMvc
().
SetCompatibilityVersion
(
CompatibilityVersion
.
Version_2_1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment