I'm trying to bypass the cache used by fetch_feed, for specific users to force an update, by looking for the transient and deleting it before calling fetch_feed.
if ( $this->bypass ) {
$identifier = md5($this->feedUrl);
$cacheKey = 'feed_' . $identifier;
$cachedResult = get_transient($cacheKey);
delete_transient($cacheKey);
}
$feedData = fetch_feed($this->feedUrl);
This however doesn't generate the correct transient key. They key in the database will be feed_2e798d9381cdbac2bb90151bf553c129 but this code is giving me feed_3f88b9c0e4a4ed755f0216b12b320fa5.
Is there a way to get the correct key from the url, or is there a method to delete the transient key via url?