Raspberry Pi 3 disable bluetooth and wifi

To completely disable WiFi and Bluetooth by disabling kernel modules in Raspbian / OSMC add following lines to
/etc/modprobe.d/raspi-blacklist.conf

#wifi
blacklist brcmfmac
blacklist brcmutil
#bt
blacklist btbcm
blacklist hci_uart

Kodi video buffer cache location

When you disable RAM caching by setting “cachemembuffersize = 0” in .kodi/userdata/advancedsettings.xml Kodi will write video cache to disk.
Video cache will be written to kodi temporary folder:

~/.kodi/userdata/temp

with filename:

filecache000.cache