lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Jul 23, 2018, at 18:47, jitesh pabla wrote:
Hello everyone,

I am using CGILua (keplerproject.github.io/cgilua/) in a project in which the data displayed on the page is constantly changing (The data being a table being imported from some other lua script). But I cannot get the data to update on the CGILua page unless I make a change in the source page to force CGILua to re-run the Lua code in that page.

You may want to change the reload option in CGILua [1].

Be careful not to do that in production if you have a lot of traffic, for performance reasons...

[1] https://github.com/keplerproject/cgilua/blob/30cb89377f75687a9c507e03351848ff2446755f/src/launchers/cgilua.fcgi#L26

--
Pierre Chapuis