Update functions.php

Added WordPress Network compatibility. It is possible now to serve cached files for blogs within a network.