temporarily disable the document cache, wait to clear it before redirecting to login

pull/1/head
ansuz 4 years ago
parent e56083c809
commit d44f1880a4

@ -1903,12 +1903,12 @@ define([
var requestLogin = function () { var requestLogin = function () {
// log out so that you don't go into an endless loop... // log out so that you don't go into an endless loop...
LocalStore.logout(); LocalStore.logout(function () {
// redirect them to log in, and come back when they're done.
// redirect them to log in, and come back when they're done. var href = Hash.hashToHref('', 'login');
var href = Hash.hashToHref('', 'login'); var url = Hash.getNewPadURL(href, { href: currentPad.href });
var url = Hash.getNewPadURL(href, { href: currentPad.href }); window.location.href = url;
window.location.href = url; });
}; };
common.startAccountDeletion = function (data, cb) { common.startAccountDeletion = function (data, cb) {

@ -1631,7 +1631,7 @@ define([
Store.leavePad(null, data, function () {}); Store.leavePad(null, data, function () {});
}; };
var conf = { var conf = {
Cache: Cache, //Cache: Cache, // XXX re-enable cache usage
onCacheStart: function () { onCacheStart: function () {
postMessage(clientId, "PAD_CACHE"); postMessage(clientId, "PAD_CACHE");
}, },
@ -2686,7 +2686,7 @@ define([
readOnly: false, readOnly: false,
validateKey: secret.keys.validateKey || undefined, validateKey: secret.keys.validateKey || undefined,
crypto: Crypto.createEncryptor(secret.keys), crypto: Crypto.createEncryptor(secret.keys),
Cache: Cache, //Cache: Cache, // XXX re-enable cache usage
userName: 'fs', userName: 'fs',
logLevel: 1, logLevel: 1,
ChainPad: ChainPad, ChainPad: ChainPad,

@ -175,7 +175,7 @@ define([
ChainPad: ChainPad, ChainPad: ChainPad,
classic: true, classic: true,
network: network, network: network,
Cache: Cache, //Cache: Cache, // XXX re-enable cache usage
metadata: { metadata: {
validateKey: secret.keys.validateKey || undefined, validateKey: secret.keys.validateKey || undefined,
owners: owners owners: owners

@ -427,7 +427,7 @@ define([
channel: secret.channel, channel: secret.channel,
crypto: crypto, crypto: crypto,
ChainPad: ChainPad, ChainPad: ChainPad,
Cache: Cache, //Cache: Cache, // XXX re-enable cache usage
metadata: { metadata: {
validateKey: secret.keys.validateKey || undefined, validateKey: secret.keys.validateKey || undefined,
}, },

Loading…
Cancel
Save