[Review] Fixing caching bug and style issues.

 * Slave's session caching is returned back.
 * Event's deadlines is back.