Both numbers can be correct. This OpenWrt build explicitly sets 1000 entries. With that setting absent and no overrides, dnsmasq uses 150. The TTL determines how long an answer can be reused.
Match the running instance
Run these checks over SSH. With multiple instances, match the file after -C in command to the instance serving your LAN. Check the start time. An older log line may belong to a previous run. Redact internal addresses before sharing output.
uci show dhcp | grep cachesize
ubus call service list '{"name":"dnsmasq"}'
grep -H '^cache-size=' /var/etc/dnsmasq.conf.*
logread | grep 'started, version' | tail -5
Four starts on the same router
We restarted dnsmasq after each change in an isolated OpenWrt 25.12.6 x86/64 VM. The lines show the original setting, the option removed, an explicit 0 and the restored configuration. Zero disables caching. All four runs resolved localhost, which checks only local replies.
started, version 2.93 cachesize 1000
started, version 2.93 cachesize 150
started, version 2.93 cache disabled
started, version 2.93 cachesize 1000
Verify the change
OpenWrt 25.12.6 · LuCI → Network → DNS → Limits → Size of DNS query cache
Back up the settings and note whether the field was unset. Under Network in LuCI, open DNS settings for the right instance and find the cache size. Placeholder text cannot confirm the active value. Enter a number for a fixed limit, save and apply. If no new startup line appears, check extra configuration and restart dnsmasq during maintenance.

The 150 above the cache field refers to concurrent queries. Read the next row for the cache limit.
Run this on a LAN client using the actual listening address. Check the answer and the new startup line. A faster second lookup cannot prove the limit. If resolution fails or memory runs low, restore the previous value or remove the new option if originally absent. Apply and test again.
nslookup openwrt.org 192.168.1.1
Does your OpenWrt dnsmasq package include a specific security fix?
Comments