WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#9202 closed feature request (invalid)

Add action-hooks for caching-plugins (WP Super Cache, etc)

Reported by: erunafailaro Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Plugins Keywords:
Focuses: Cc:

Description

Allow better integration of caching-plugins like WP Super Cache, WP Widget Cache and DB Cache.

The Idea would be to add the following three action-hooks to WordPress and to allow plugins to hook into them:

  • activate_all_cache_plugins
  • deactivate_all_cache_plugins
  • clear all caches

Three buttons could be added to the WordPress options to allow the user to clear all caches, activate or deactivate all caches from one single point inside the admin-panel instead of visiting the plugin-option-panel of every single cache-plugin.

Change History (3)

comment:1 @FFEMTcJ6 years ago

  • Milestone changed from 2.8 to Future Release

comment:2 @Denis-de-Bernardy6 years ago

  • Component changed from General to Plugins
  • Owner anonymous deleted

comment:3 @Denis-de-Bernardy6 years ago

  • Milestone Future Release deleted
  • Resolution set to invalid
  • Status changed from new to closed

seems a bit overkill. which hooks you'll need will depend on what you're caching. These are the ones you'll usually want to consider to clean caches:

'save_post',
'delete_post',
'add_link',
'edit_link',
'delete_link',
'edit_comment',
'comment_post',
'wp_set_comment_status',
'switch_theme',
'update_option_show_on_front',
'update_option_page_on_front',
'update_option_page_for_posts',
'update_option_sidebars_widgets',
'generate_rewrite_rules',

they won't necessarily be valid for all caching plugins.

Note: See TracTickets for help on using tickets.