该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

描述

This plugin will trigger a cache purge using the LSCache or Nginx Helper plugin when hooks are fired by popular plugins or themes.

  • If using the LSCache plugin, Litespeed Enterprise or Openlightspeed is required to purge server cache.
  • If using the Nginx Helper plugin, Nginx cache method FastCGI or Nginx Redi Cache is required to purge server cache.

The following themes and plugins hooks are used.

WordPress Core Hooks

  • upgrader_process_complete
  • activated_plugin
  • deactivated_plugin
  • switch_theme

Beaver Builder Plugin

  • fl_builder_cache_cleared
  • fl_builder_after_save_layout
  • fl_builder_after_save_user_template
  • upgrader_process_complete

Elementor Plugin

  • elementor/core/files/clear_cache
  • update_option__elementor_global_css
  • delete_option__elementor_global_css

Autoptimizer Plugin

  • delete_option__elementor_global_css

Oxygen Theme

  • wp_ajax_oxygen_vsb_cache_generated
  • update_option__oxygen_vsb_universal_css_url
  • update_option__oxygen_vsb_css_files_state

安装

Automatic Installation

  1. Log in to your WordPress admin panel, navigate to the Plugins menu and click Add New.
  2. In the search field type “Cache Purge Helper” and click Search Plugins.
  3. From the search results, pick “Cache Purge Helper” and click Install Now. WordPress will ask you to confirm to complete the installation.

Manual Installation

  1. Extract the zip file.
  2. Upload them to /wp-content/plugins/ directory on your WordPress installation.
  3. Then activate the Plugin from Plugins page.

Enabling Debug Mode

Simply add define('CPHP_DEBUG',true); to your wp-config.php to see debug messages in your PHP error_log

常见问题

Why did you create this plugin?

There are a number of plugins and themes that change data in a WordPress instance which results in broken visuals and require a manual cache purge. This plugin makes sure that those instances will purge your sites cache.

What other caching solutions do you support?

None. Submit a issue on Github https://github.com/jordantrizz/cache-purge-helper/issues

评价

阅读所有2条评价

贡献者及开发者

“Cache Purge Helper” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Cache Purge Helper”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

0.1.3

  • Github actions to automate pushing to SVN

0.1.2

  • Release to be sent to WordPress Plugin Directory

0.1.1

  • Preparing to be added to the WordPress Plugin Directory