Manually triger the filecache update hooks before any other hook

This prevents a race condition where the filesystem is updated multiple times if a hook triggered before the update hooks accesses the filecache.

This saves 24 database queries on my local test instance

cc @DeepDiver1975 @PVince81 @bartv2