@trullock/page-manager 0.13.3 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/src/page.js +1 -6
- package/tests/page.js +1 -3
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -131,7 +131,7 @@ function loadPage(route, data) {
|
|
|
131
131
|
|
|
132
132
|
let page = new (route.pageClass)($html);
|
|
133
133
|
|
|
134
|
-
let cacheKey =
|
|
134
|
+
let cacheKey = route.pageClass.cacheMarkupBy == 'path' ? route.path : route.pattern;
|
|
135
135
|
pageCache[cacheKey] = {
|
|
136
136
|
$html,
|
|
137
137
|
page
|
package/src/page.js
CHANGED
|
@@ -5,12 +5,7 @@ export default class Page {
|
|
|
5
5
|
this.visible = false;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
cacheMarkupBy = 'route'
|
|
9
|
-
|
|
10
|
-
invalidateCache(){
|
|
11
|
-
// TODO: pagemanager doesnt currently read this
|
|
12
|
-
this.dirty = true;
|
|
13
|
-
}
|
|
8
|
+
static cacheMarkupBy = 'route'
|
|
14
9
|
|
|
15
10
|
_title = null;
|
|
16
11
|
get title() {
|