Derived invariants in characteristic p