Create a cache system (sqlite+.gz files) for all views
Move cache garbage collection from Bash to PHP