Contentful logo

Contentful Community

How to purge or refresh the Cache usin PHP SDK with autoWarmup?

#1

I have a doubt regarding this topic, I’m using this on a php file

$clientOptions= array('autoWarmup' => true,'cacheContent' => true );

$client = new Client($accessToken, $spaceID,'master',false,$contenfulLocale,$clientOptions);   

To later include this on some pages using for example:

$homepage= $client->getEntry(‘entryID’);

My doubt is how can I refresh or delete the cache? I read the tutorial but there is not clear info about that, its only says:
" you should always try to do a cache purge on content type changes, either manually or using webhooks."…

The question is how…?

Thanks in advance

#2

anyone?

Should be open a ticket or open a issue on github?