Hi Marv,
thanks a lot for the detailed reply!
Being a huge fan of the K.I.S.S. principle, i was really looking for the
easiest way to do this! ;)
Especially since this is a tech-dev project for now and I don't know
yet, whether we will go this way in the future, i was trying to avoid
getting familiar with ruby at this point...
Our plan is to expose a couple of numbers like processed customers and a
version number that both change frequently.
Therefore we would like the short, 1 minute update interval.
So i started looking at the concerto log file, did some fiddling and
found this:
I started with the string 'version: 41' in the data column of my field
in question.
mysql> select id, name, data from contents where name='Platform Version';
| id | name | data |
+----+------------------+-------------+
| 16 | Platform Version | version: 41 |
after restarting apache on the concerto system, the correct text
('version: 41') is displayed in the ticker field.
then i updated the content in the db table manually:
mysql> update contents set data='version: 42' where id=16;
this db update is not reflected on the screen. shift-reload (to bypass
the cache) in firefox (FF) does not help.
then i opened this link:
http://192.168.101.181/frontend/6/fields/2/contents.json
that afai understand returns the content for the ticker field i am
looking at:
[{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
41"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
41"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
41"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
41"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
41"}}]
not 0
i am not sure why there are 4 entries in the returned list... but note
that data still has the old value ('version: 41').
reloading the contents.json in FF did not change this;
BUT:
shift-reloading in FF did:
[{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
42"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
42"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
42"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
42"}},{"id":16,"name":"Platform
Version","duration":16,"type":"Ticker","render_details":{"data":"version:
42"}}]
0
I guess this tells us, that the correct text ('version: 42') is actually
served by the concerto server!
and after shift-reloading the contents.json, a simple reload of the FF
concerto screen shows the correct text as well.
so as you suspected, this actually seems to be a caching issue in the
browser. i was wondering if the simplest solution could be to add some
pragma info for no-caching to the html code delivered by the concerto
server...
and.... no :(
i tried to modify app/views/layouts/frontend.html.erb with something
like this, but no avail:
<meta http-equiv="Cache-Control" content="no-cache, no-store,
must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
what do you think?
thanks in advance,
best regards from Cologne :)
> You should *not* update the updated_at column in the fields table.
> That is part of the data used to determine if the template needs
> updated and will result in an entire screen refresh.
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Concerto Digital Signage" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/concerto-digital-signage/t2nMPOpk8Qs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
concerto-digital-s...@googlegroups.com
> <mailto:
concerto-digital-s...@googlegroups.com>.
> To post to this group, send email to
>
concerto-dig...@googlegroups.com
> <mailto:
concerto-dig...@googlegroups.com>.
> Visit this group at
>
https://groups.google.com/group/concerto-digital-signage.
> For more options, visit
https://groups.google.com/d/optout.