[buddypress-trac] [BuddyPress Trac] #8462: bp_core_clear_cache should be filterable

buddypress-trac noreply at wordpress.org
Sun Apr 25 10:29:31 UTC 2021

#8462: bp_core_clear_cache should be filterable
 Reporter:  shawfactor   |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Core         |    Version:
 Severity:  normal       |   Keywords:
 Right now bp_core_clear_cache just calls prune_super_cache( $cache_path,
 true );

 This has two major problems, namely

 1. it is complete overkill (especially on multisite) as this clears the
 entire wp super cache cache.

 2. This just relies on wp super cache, if the code stays it should be a
 general solution

 There ae two solutions. Either remove the code entirely  (probably the
 best one)


 Change the code such you can filter the circumstances in which you want to
 delete the cache. And maybe change the caching mechanism through a filter.

Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8462>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac

More information about the buddypress-trac mailing list