This strategy for stopping squash borer worked in my garden.
I’ve learned through trial and error that you can make up for less than ideal soil and moisture through better vegetable plant spacing.
Read this article for an easy how to compost faster plan. It shows you how to keep the varmints out of your pile and speed decomposition at the same time.
This article makes the case for testing garden strategies before using them throughout the garden. It discusses why and how to test.