{"id":5686525,"date":"2015-01-18T23:47:01","date_gmt":"2015-01-18T23:47:01","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/programatically-delete-cache-entry\/"},"modified":"2016-08-22T15:33:18","modified_gmt":"2016-08-22T15:33:18","slug":"programatically-delete-cache-entry","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/programatically-delete-cache-entry\/","title":{"rendered":"programatically delete cache entry"},"content":{"rendered":"<p>I use wp fragment cache on my website this way:<\/p>\n<p>if ( ! WP_Fragment_Cache::output( &#8220;photo_gallery_page&#8221;, 600 ) ){<\/p>\n<p>\/\/cache galllery page<\/p>\n<p>WP_Fragment_Cache::store();<br \/>\n}<\/p>\n<p>If i want to delete that cache entry before it expires, what method should i call?<br \/>\nI was thinking on something like:<br \/>\nWP_Fragment_Cache::purge( &#8220;photo_gallery_page&#8221;)<br \/>\nbut id does not seem to work.<\/p>\n<p>What am i doing wrong?<\/p>\n<p>Thanks<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-fragment-cache\/<\/p>\n","protected":false},"template":"","class_list":["post-5686525","topic","type-topic","status-closed","hentry","topic-tag-invalidation"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5686525","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/5686525\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=5686525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}