Skip to:
Content

bbPress.org


Ignore:
Timestamp:
07/01/2012 11:50:30 PM (14 years ago)
Author:
johnjamesjacoby
Message:

Caches:

  • Introduce bbp_clean_post_cache() to handle cleaning custom queries and post ancestors.
  • Audit use of _pre_ and _post_ forum/topic/reply actions and locations. Reposition and pass parents as needed.
  • Add 'bbp_clean_post_cache' action to necessary _pre_ and _post_ actions.
  • Fixes #1861.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/plugin/bbp-includes/bbp-core-actions.php

    r4035 r4041  
    218218add_action( 'bbp_new_topic', 'bbp_global_access_auto_role' );
    219219add_action( 'bbp_new_reply', 'bbp_global_access_auto_role' );
     220
     221// Caches
     222add_action( 'bbp_new_forum_pre_extras',  'bbp_clean_post_cache' );
     223add_action( 'bbp_new_forum_post_extras', 'bbp_clean_post_cache' );
     224add_action( 'bbp_new_topic_pre_extras',  'bbp_clean_post_cache' );
     225add_action( 'bbp_new_topic_post_extras', 'bbp_clean_post_cache' );
     226add_action( 'bbp_new_reply_pre_extras',  'bbp_clean_post_cache' );
     227add_action( 'bbp_new_reply_post_extras', 'bbp_clean_post_cache' );
    220228
    221229/**
Note: See TracChangeset for help on using the changeset viewer.