diff --git a/lg/about_en.txt b/lg/about_en.txt index 2e808b3109a4b2ff159f94a7568fafda4be0b226..615596ca85d8b0f76bb61e1f128b2f11cfde405d 100644 --- a/lg/about_en.txt +++ b/lg/about_en.txt @@ -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 diff --git a/lg/about_fr.txt b/lg/about_fr.txt index 4549ae2225667fb27828f1132d818005ec4c3129..de67524f20240dc70391630f858f0ce06893f7b3 100644 --- a/lg/about_fr.txt +++ b/lg/about_fr.txt @@ -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 diff --git a/routes/members.js b/routes/members.js index 4ce4ba19d30e9debbabf9ea7886465749eee289a..a9c410879f22ff9c0c189d6e4cbb6c140dd88635 100755 --- a/routes/members.js +++ b/routes/members.js @@ -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 = []; diff --git a/views/about.html b/views/about.html index b8edac9a5e413ddaafcc41727aa8aa03699c02cc..0d270465d1aa956b6f839c27e978b191585acc8a 100755 --- a/views/about.html +++ b/views/about.html @@ -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>