Hi folks, is there a way to exclude certain mocks/...
# help
a
Hi folks, is there a way to exclude certain mocks/templates from being cached in wiremock standalone? Most of my mocks are relatively static and can be cached, but some of my mocks rely on a “now” timestamp, which blows up my cache, and results in an out of memory error (using pre 3.7.0 version). Sure, I can set the max template cache to 1000 entries, but all of them will be very quickly filled by the mock that uses a “now” timestamp, and I’d rather exclude that from being cached entirely, if that’s possible. Is it possible?
l
It doesn't look like it is possible to exclude specific stubs from the template cache while allowing others through. This doesn't seem like it would be too difficult to implement though. Maybe using a template parameter perhaps.
👍 1
a
Implement through a PR or as code?
l
Sorry, I am not sure what you mean. We would be happy to have a PR if you wanted to take a look at implementing it ?
a
Perhaps, but I haven’t looked at the internals! I thought you were inviting contributions bc yall were flooded with more higher priority work 😅
l
Well, the team are always busy with both WireMock open source and WireMock Cloud so we are always happy to support people who might want to contribute
👍 1