Read the statement by Michael Teeuw here.
MMM-NEWS problem
-
@stuartiannaylor
I think this is very meaningless argues.
Anyway, This thread is posted by @costascontis originally. He had a problem withMMM-News
whenever he does screen refreshing withCtrl+R
. And as a creator of this module, I answered this module is not designed for that unexpected action. That’s all.
So, See that module and explain me anything what you want. -
@sean ctrl+r is a soft refresh not a hard refresh and it retains the cache.
Its only piontless because for some reason you will not simply state the modules you know have problems with hard refreshes.
Needs to be ctrl+F5 with chromium or whatever the shortcut key for hard refresh is.
-
@stuartiannaylor
I’M NOT THE WHO HAS PROBLEM WITH REFRESHING. @costascontis is the one who ask this things. So you seems to be speaking to wrong person. -
@sean said in MMM-NEWS problem:
REFRESHING MM, not RESTARTING could make problems on many modules(including mines.). Regardless some modules would be not affected, but some would.
It depends on design of module structure. I do some tricks on
DOM_OBJECTS_CREATED
as a signal for ready of working. When MM is started and be ready for all DOM being prepared, that notification is emitted. Only one time emittance of that notification is expected during execution, not twice or more. But REFRESHING will break that agreement.When MM Front is refreshed, MM modules would be restarted but some background-procedures (like node_helper.js or related background external scripts) are not killed or restarted properly. Because, many of them are not designed to be REFRESHED.
REFRESHING is some kind of interrupt from User. It couldn’t be predicted or postponed by condition. so, cannot be done killing or restarting process gracefully and safely.So, It’s better not to REFRESH. RESTART MM instead.
I am replying to that which just isn’t true.
So when refreshing always do a hard refresh which on Chromium is ctrl+F5 pretty sure ctrl+r is the same as F5 and a soft refresh where it keeps the cache. -
@stuartiannaylor
THIS IS THE MODULE I’VE CREATED!! So I know what happens whenever @costascontis does Ctrl+R.Anyway, this module will be newly getting the source to aggregate when it is refreshed (Hard or Normal whatever). And the reason is I’ve made so because I didn’t expect User doing refresh MM by manually. That is not related with any cache or any refresh mechanism at all. I JUST MADE THIS MODULE TO ACT SO BECAUSE I HAVEN’T EXPECTED SOMEONE REFRESH IT BY FORCE.
Back to the
MMM-News
,
Even whatever Hard refresh(Ctrl+F5) or Normal refresh(F5), This module will be accumulate the sources and show articles duplicately.(Because I made so). So I told @costascontis to RESTART instead REFRESH.So now, What isn’t true as you said?
-
@sean I have MMM-news by the side of me and do not have to restart the browser just the server,
-
@stuartiannaylor Of course, RESTART is not also needed usually to normal users. My module is working as expected in commonway.
I don’t know why @costascontis needs REFRESH or RESTART, but he just said he has a problem on REFRESH so I explained him why module has a problem on refreshing(hard or normal whatever) and told him not to REFRESH my module. but if he want it anyway, RESTART instead. That’s all. -
@sean said in MMM-NEWS problem:
Anyway, this module will be newly getting the source to aggregate when it is refreshed (Hard or Normal whatever). And the reason is I’ve made so because I didn’t expect User doing refresh MM by m
I will just quote you once more and say that its not true, but hey.
You can not make a module bridge the stateless gap of browser and server.
The server is incredibly light and its the server that needs to restart the browser can just do a hard refresh and doesn’t need to restart.
It all depends on the way you have installed if your using electron because its in the same process as the server it forces both.
If you install with chromium then you don’t have to restart the browser. -
@stuartiannaylor
I DON’T NEED ANY RESTARTING OR REFRESHING FOR MY MM !! IT WORKS WELL ALWAYS EVEN ON ELECTRON OR CHROMIUM.
This situation is something like speaking to the wall…Anyway, this module will be newly getting the source to aggregate when it is refreshed (Hard or Normal whatever). And the reason is I’ve made so …
the reason is I’ve made so, have you missed this? I’ve made this module to act like that.
So, Test my
MMM-News
with Hard refreshing or Normal refreshing. It will aggregate duplicated articles because I’ve made so. People can call it a bug or an issue or unexpected misbehavior whatever. But I made it like that! because usually REFRESH by user is not needed for MM. It is not designed for being REFRESHED.
Why you said this is not the true? -
Sean I have it by the side of me and because I restart the server without need to restart the browser there is no aggregated duplicated articles.
It doesn’t happen and irrespective of who or what you are I have it by the side of me installed it without restart and others after with no duplicates as how could there be when the server has been restarted and the only remnants in cache have been dropped by a hard refresh.Pfff enough of this as the universe is flat Sean, flat! Do you hear me!
Its a bug for those who have installed electron but if you use Chromium and do it my way its doesn’t matter.