Skip to:
Content

BuddyPress.org

Opened 7 months ago

Last modified 6 months ago

#8462 new enhancement

bp_core_clear_cache should be filterable

Reported by: shawfactor Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Core Keywords:
Cc:

Description

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.
  1. 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)

or

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.

Change History (1)

#1 @shawfactor
6 months ago

Hello can someone look at this? All that is needed is a simple filter to turn this function off. As the way it clears the cache can be very heavy handed.

Note: See TracTickets for help on using tickets.