How to clear GraphQL cache on a hosted Craft CMS ?

Oscar de la Hera Gomez
How to clear the GraphQL cache on a hosted Craft CMS

If you ever encounter a Craft CMS GraphQL error after updating your schema, SSH into your server and run the following two commands.

Step One: SSH into the server

A screenshot of Terminal showing what the terminal looks like after you have successfully accessed a hosted craft cms using SSH on Fortrabbit.

Follow the tutorial below to learn how to SSH into the server.

Step Two: Run the clear all caches command.

Run php craft clear-caches/all in terminal to clear all caches

In terminal run the following command:

php craft clear-caches/all

Step Three: Run the flush schema command

Run php craft cache/flush-schema in terminal to flush the cache

In terminal run the following command:

php craft cache/flush-schema

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.

delasign logo

Book a Free Consultation.

An icon of an email.

Click here to email us.

Fill in the details below to book a free consultation or to let us know about something else. Whatever it is, we are here to help.

How can we help you ?

Contact Details