How to clear 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.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 04/06/2022 at 14:10
Last Updated on 07/31/2023 at 09:01
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

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

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

How to SSH into a hosted Craft CMS

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.

SubscribeInquireView All PostsView All ServicesView All Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe