Fixed cache bug
This commit is contained in:
parent
ea175d49f9
commit
08c22da8e5
3 changed files with 10 additions and 2 deletions
8
.idea/runConfigurations/tests_in_route.xml
Normal file
8
.idea/runConfigurations/tests_in_route.xml
Normal file
|
@ -0,0 +1,8 @@
|
|||
<component name="ProjectRunConfigurationManager">
|
||||
<configuration default="false" name="tests in route" type="DartTestRunConfigurationType" factoryName="Dart Test" singleton="true" nameIsGenerated="true">
|
||||
<option name="filePath" value="$PROJECT_DIR$" />
|
||||
<option name="scope" value="FOLDER" />
|
||||
<option name="testRunnerOptions" value="-j 4" />
|
||||
<method />
|
||||
</configuration>
|
||||
</component>
|
|
@ -329,7 +329,7 @@ class Router {
|
|||
Iterable<RoutingResult> resolveAll(String absolute, String relative,
|
||||
{String method: 'GET', bool strip: true}) {
|
||||
if (_useCache == true) {
|
||||
return _cache.putIfAbsent(absolute,
|
||||
return _cache.putIfAbsent('$method$absolute',
|
||||
() => _resolveAll(absolute, relative, method: method, strip: strip));
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
name: angel_route
|
||||
description: A powerful, isomorphic routing library for Dart.
|
||||
version: 2.0.3+1
|
||||
version: 2.0.3+2
|
||||
author: Tobe O <thosakwe@gmail.com>
|
||||
homepage: https://github.com/angel-dart/angel_route
|
||||
environment:
|
||||
|
|
Loading…
Reference in a new issue