Update caching.php

Fix addJavaScript for object & module caching