Ionic 3: How make ionViewWillEnter only when back button pressed?

I have read Navigating Lifecycle Events

My use case here is. I had to refresh the content on page load as well as when back button pressed from another page.

ionViewDidLoad(){
   this.getProjects();
}

ionViewWillEnter(){
   this.getProjects();
}

this works fine but of course ionViewWillEnter runs on first page load as well. so two api requests triggered (ionViewDidLoad + ionViewWillEnter). Is there any way to restrict them like setting flag or something?