Is it possible to reload (or delete) the wp-super-cache from a php script? Is there a specific function for that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://ocaoimh.ie/wp-super-cache-developers/ says:
The development version of the plugin includes the following function. However, as this code hasn’t been released you cannot depend on this function being available on WordPress blogs just yet.
If you need this functionality in a plugin now, call prune_super_cache() directly. Please sanity check it however as it’s a very powerful command!
Delete the cache files for a single post by using the wp_cache_post_change( $post_id ) function. It will attempt to delete every half-on cache file for that post, as well as any supercache files.