make a logger a debug and use ponydocs_cache_debug constant for WEB-5757 +review WEBCR-459