Speed glob cache

Instead of caching modules/shortcodes/widgets separately, just cache the
results of `glob_php` for non-admin pages

This makes #965 obsolete
We're gonna have to split the callback to a separate function for PHP backwards compatibility.