I'm running my app on commandbox:lucee5-alpine-3.4...
# box-products
t
I'm running my app on commandbox:lucee5-alpine-3.4.4 and I'm running into a really strange issue. For some reason static files like test.html are getting cached. If I set the content to "test 123" then request it, then update it to 'test 1234', I get "test 123" again. To rule out any browser caching I'm using Curl. Server.json below. Any ideas?
d
@Tim Badolato Lucee has a cache setting to never look for changes to templates. I'm guessing it is on my default with that flavor of Lucee running via ComnandBox? Probably a production setting and it looks like production is the default profile for CommandBox. Might be way off, but hopefully that leads you in the right direction. https://docs.lucee.org/guides/deploying-lucee-server-apps/webserver-cache.html https://commandbox.ortusbooks.com/embedded-server/configuring-your-server/server-profiles
👍 1
b
@Tim Badolato is your server in production mode?
If you edit static files on prod, then either enable the file system watcher which automatically clears the cache, or disable the CommandBox servlet cache.
You'll find all those settings under the web block. Use tab completion in the "server set" command.
👍 1
t
Thanks! I'll check out those suggestions