added message logging to caches and api; fixed message logging from solenoids when cache empty