Fix hooks for filecache