EZP-22321: Fix ezjscore cache not cleared on DFS

Alternative to #893.

A clear function is added to the ezjscore cache item. It uses `deleteByDirList()` instead of `delete()` in order to recursively delete.