Reputation: 417
I have a site (WordPress 4.9.3) that uses WP Super Cache (1.5.9). I have some pages with content that is generated from a custom database table that I only have to update once a month (I have an routine external to the website that updates the table). Since the table is only updated once a month, I would like to cache those pages. However, when I update the table, I need to delete the cache for those pages or my new data will not show up.
Is there an API or something I can call that will delete the cache either for those pages or for all pages. It would also be great to call the Preload Cache function too after that…
Any assistance would be appreciated.
Upvotes: 0
Views: 1444
Reputation: 41
You can try this:
$post_id = 123;
wpsc_delete_post_cache($post_id);
Upvotes: 4