remove unused code.
add limit filter parameter in getEvents() from cache.