Creating an event clears the cache
When creating a new event or updating an existing the system will clear all caches in the background.
The line causing this is in the CRM_Event_BAO_Event::add
public static function add(&$params) {
CRM_Utils_System::flushCache();
see: https://github.com/civicrm/civicrm-core/blame/master/CRM/Event/BAO/Event.php#L86
My question is why the caches need to be cleared when adding or updating an event? And if there is no reason is it safe to remove this line?