# Node-red-contrib-infocache missing

**URL:** <https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858>\
**Category:** General\
**Created:** [29 July 2020 07:39 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858 "2020-07-29T07:39:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![GPG](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GPG](https://discourse.nodered.org/u/GPG)\
**Post date:** [29 July 2020 07:39 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/1 "2020-07-29T07:39:43Z")

</div>

Hi all,  
I'm trying to use UI Builder, but I'm not able to install [node-red-contrib-infocache] module.  
It isn't possible neither by Node-Red palette neither by npm install, it seems that this repo is missing in npm registry.

It is replaced from other contrib module (i.e. node-red-contrib-cache) ?  
Or there is another way to install it?

Please @TotallyInformation could you help me?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 July 2020 08:12 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/2 "2020-07-29T08:12:42Z")

</div>

> [@GPG](#):
>
> node-red-contrib-infocache

This has not been published because it is a future project. I started the code but found quite a lot of edge-cases that I haven't had time to figure out.

Use the examples in the library and in the WIKI on how to use a simple function node to provide a Cache.

---

<div class="post-metadata">

**Author:** ![GPG](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GPG](https://discourse.nodered.org/u/GPG)\
**Post date:** [29 July 2020 08:48 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/3 "2020-07-29T08:48:43Z")

</div>

Thank you TotallyInformation for this prompt reply.

I tried your example in Wiki page:

> **[TotallyInformation/node-red-contrib-uibuilder](https://github.com/TotallyInformation/node-red-contrib-uibuilder/wiki/Cache-and-Replay-Messages-without-using-node-red-contrib-infocache)**
>
> Easily create data-driven web UI's for Node-RED using any (or no) front-end library. VueJS and bootstrap-vue included but change as desired. - TotallyInformation/node-red-contrib-uibuilder

but itsn't working in my flow.  
When I refresh the page by browser I lose inserted data (for example).

I have miss some cache setting in node-red settings?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![GPG](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GPG](https://discourse.nodered.org/u/GPG)\
**Post date:** [29 July 2020 09:29 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/4 "2020-07-29T09:29:32Z")

</div>

Hi @TotallyInformation,  
I checked in debug ctrl message that topic is missing, whereas function node to manage cache expects topic set in input.

This is the first row in the function:  
`// Expects input msgs with topic set`

This could be the problem? I have to add a topic in sent ctrl messages from UIBuilder node?

[quote="GPG, post:3, topic:30858, full:true"]  
I tried to use topic field in Node-Red node (with Name and URL), but without success: when I refresh the page I lose typed content.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [29 July 2020 16:04 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/5 "2020-07-29T16:04:42Z")

</div>

> [@GPG](#):
>
> I checked in debug ctrl message that topic is missing, whereas function node to manage cache expects topic set in input.

As described in the documentation, the 2nd output port of uibuilder sends the control msgs with appropriate data. Are you saying that you aren't getting anything out of the control port?

---

<div class="post-metadata">

**Author:** ![GPG](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GPG](https://discourse.nodered.org/u/GPG)\
**Post date:** [30 July 2020 07:40 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/6 "2020-07-30T07:40:39Z")

</div>

I have message from control port.

Please refer to attached images (flow and control msgs).  
I have msg in home controls debug, but no msg in input messages debug (I think I'm in return rull fuction section).

I set also topic ("home") in UIBuilder node, but when I refresh the web pase I lose typed data and button counter.![ctrlmsg3|427x335]  
(upload://34QWxOZlr5e6s7DX7gwsCi2PRkr.png) ![ctrlmsg2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/0/c07d76e1b5611532562002088c98c3190dfc7c41.png) ![ctrlmsg1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/6/c604228dfd8bd40b0f5be088711978f6cd2f72da.png)

 ![flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0eb9a3c2a0a19902f604513ed23cd06be1200b68.png)

---

<div class="post-metadata">

**Author:** ![GPG](https://avatars.discourse-cdn.com/v4/letter/g/f19dbf/32.png) [@GPG](https://discourse.nodered.org/u/GPG)\
**Post date:** [30 July 2020 08:58 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/7 "2020-07-30T08:58:05Z")

</div>

Hi @TotallyInformation,  
I solved used other example:

 ![cache2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/0/3040f9a5fab6b5147b6d2ccc31490842d27237ee.png)

Now I'm able to save info in cache, so they are reloaded after page refresh.

All cached informations must be sent to cache node in order to be saved for future refresh.  
Is it correct?

Thanks a lot for your support.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [30 July 2020 13:08 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/8 "2020-07-30T13:08:40Z")

</div>

> [@GPG](#):
>
> All cached informations must be sent to cache node in order to be saved for future refresh.  
> Is it correct?

Yes, that is how any cache works. You send it information and it saves (caches) it. the `CACHE-REPLAY` control message from the client is your signal to replay the cache.

You don't _have_ to cache by topic of course, that is only 1 approach. How you cache things depends on your front-end interface and that is one of the reasons that the cache node is stalled - because caching can get very complex. It turns out to be much easier to do a cache in a function node than a custom one 😱

---

<div class="post-metadata">

**Author:** ![tmichaeltx](https://avatars.discourse-cdn.com/v4/letter/t/73ab20/32.png) [@tmichaeltx](https://discourse.nodered.org/u/tmichaeltx)\
**Post date:** [3 September 2020 18:25 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/9 "2020-09-03T18:25:15Z")

</div>

Might it make sense at this point to spell out in the Wiki for uibuilder that while the infocache node will probably be the solution in the future, at least for now, the other options are the best available at the moment?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [3 September 2020 23:04 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/10 "2020-09-03T23:04:47Z")

</div>

Good point, and done. Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [2 November 2020 23:04 UTC](https://discourse.nodered.org/t/node-red-contrib-infocache-missing/30858/11 "2020-11-02T23:04:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
