Setting INHERIT+=ccache in conf/local.conf. After running bitbake less, I checked the log_do.compile log and ccache is not used or at least nothing appears in the log.
add the steps below: bitbake ccache-native bitbake less -c cleansstate bitbake less -c compile can get "ccache" from log.do_compile.
Can you confirm the issue after adding ccache to your system as suggested please.
See last comment
As suggested by Liang, you also need to have build ccache-native, maybe this needs better documentation
Setting this to verified after liang li comments