Caching wiki query results in mysql with php, js directory cleanup, category hierarchy traversing