Commit ba5c69c8 authored by Éloïs's avatar Éloïs

[fix] cache & git links

parent f3703b77
Pipeline #373 passed with stage
in 18 seconds
......@@ -3,7 +3,7 @@ VERSION Version
AUTHOR Author
CONTRIBUTORS Others Contributors
LICENSE license
GIT_REPOSITORY github repository
GIT_REPOSITORY git repository
IF_YOU_WANT If you want you can
DISABLE_HELP disable help
DONATE You can support the development of this module by a gift in Ğ1
\ No newline at end of file
......@@ -3,7 +3,7 @@ VERSION Version
AUTHOR Auteur
CONTRIBUTORS Autres contributeurs
LICENSE licence
GIT_REPOSITORY dépôt github
GIT_REPOSITORY dépôt git
IF_YOU_WANT Si vous le souhaitez vous pouvez
DISABLE_HELP désactiver l'aide
DONATE Vous pouvez soutenir le développement de ce module par un don en Ğ1
\ No newline at end of file
......@@ -14,6 +14,8 @@ var membersLastUptime = 0;
var previousMode = null;
var previousCentrality = null;
var previousNextYn = "no";
var previousRandomList = "no"
var previousRandomCounts = 10
var membersList = [];
var membersIdentity = [];
var membersFirstCertifExpire = [];
......@@ -83,8 +85,8 @@ module.exports = (req, res, next) => co(function *() {
// Vérifier si le cache doit être Réinitialiser
let reinitCache = (Math.floor(Date.now() / 1000) > (membersLastUptime + constants.MIN_MEMBERS_UPDATE_FREQ));
// Si changement de conditions, alors forcer le rechargement du cache s'il n'est pas, vérouillé, sinon forcer les conditions à celles en mémoire
if (previousMode != mode || previousCentrality != centrality || previousNextYn != nextYn)
// Si changement de conditions, alors forcer le rechargement du cache s'il n'est pas vérouillé, sinon forcer les conditions à celles en mémoire
if (previousMode != mode || previousCentrality != centrality || previousNextYn != nextYn || previousRandomList != randomList || numberOfRandomMembers != previousRandomCounts)
{
if (!lockMembers)
{
......@@ -95,7 +97,9 @@ module.exports = (req, res, next) => co(function *() {
{
mode = previousMode;
centrality = previousCentrality;
nextYn =previousNextYn;
nextYn = previousNextYn;
randomList = previousRandomList;
numberOfRandomMembers = previousRandomCounts;
}
}
// Sinon, si les conditions sont identiques :
......@@ -116,6 +120,8 @@ module.exports = (req, res, next) => co(function *() {
previousMode = mode;
previousCentrality = centrality;
previousNextYn = nextYn;
previousRandomList = randomList;
previousRandomCounts = numberOfRandomMembers;
membersList = [];
membersIdentity = [];
membersFirstCertifExpire = [];
......
......@@ -7,12 +7,12 @@ ${(host.substr(host.length-6,6) == '.onion') ? HTML_TOR_HEAD:HTML_HEAD}
${printMenu(MENU_LANG, help, "ABOUT")}
</form>
<div align="left">${LANG['VERSION']} : <a href="https://github.com/duniter/duniter-currency-monit/releases/tag/0.4.9">0.4.9</a></div><br>
<div align="left">${LANG['VERSION']} : <a href="https://git.duniter.org/nodes/typescript/modules/duniter-currency-monit/tree/v0.4.10">0.4.10</a></div><br>
<div align="left">${LANG['AUTHOR']} : <a href="https://github.com/librelois">Éloïs Librelois</a></div><br>
<div align="left"><small>${LANG['CONTRIBUTORS']}: <a href="https://github.com/jytou">jytou</a> (translator), <a href="https://github.com/devingfx">devingfx</a> (frontend), <a href="https://github.com/c-geek">cgeek</a> (willMembers and wotex),<a href="https://github.com/M5oul">M5oul</a> (adjustments)</small></div><br>
<div align="left">
${LANG['LICENSE']} : <a href="https://github.com/duniter/duniter-currency-monit/blob/master/LICENSE">AGPL V 3.0</a><br>
<a href="https://github.com/duniter/duniter-currency-monit/">${LANG['GIT_REPOSITORY']}</a>
<a href="https://git.duniter.org/nodes/typescript/modules/duniter-currency-monit">${LANG['GIT_REPOSITORY']}</a>
</div><br>
<div align="left">${LANG['IF_YOU_WANT']} <a href="?lg=${MENU_LANG['LG']}&help=no">${LANG['DISABLE_HELP']}</a>.</div><br>
<div align="left">${LANG['DONATE']} :<br>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment