Ninja Announcements Lite
[feature request] clear supercache when announcement changes (2 posts)

  1. James Revillini
    Posted 3 years ago #

    Plugin rocks. It would be great if it cleared the supercache cache so that there is not a delay in announcements going up/down/changing. Here is the code I added to my theme's functions.php file:

    function ninja_annc_clear_cache ( $post_id ) {
    	if (get_post_type( $post_id ) == 'ninja_annc') wp_cache_clear_cache();
    add_action( 'edit_post', 'ninja_annc_clear_cache' );

    My code may not cover all situations and it's probably overkill to clear cache upon every update instead of just at status changes. Also, to make it more configurable, it should be an option in the plugin settings.


  2. Kevin Stover
    The WP Ninjas
    Plugin Author

    Posted 3 years ago #

    Thanks for the heads up! I agree, there are a ton of things we can add to make this plugin more awesome. We recently completed a re-write of another plugin, and that has kept us super busy. We plan on re-visiting Ninja Announcements in the near future. It will probably get a complete re-write as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Ninja Announcements Lite
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic