[PPP-3123] Fixing the caching implementation in PluginResource to actually work. Previously setting a plugin to cache=true would return no zero-byte resources and worse still the expense of cache was in place without actually using it.