763f705ac1
flush_views_to_postmeta() adds warm-zone views back with a direct UPDATE, which the Hook Bus never sees: under dual_write/shadow_read the hp_listing_core.hp_view_count column drifted after every hourly batch and the (Redis) object cache kept the old count. After the UPDATE, drop the post's meta cache and, while native is still the source of truth, rebuild the entity's flat row with migrate_entity().
41 lines
1.5 KiB
PHP
41 lines
1.5 KiB
PHP
<?php
|
|
/**
|
|
* Plugin Name: 2meet Data Optimizer — Hivepress AddOn
|
|
* Plugin URI: https://2meet.io/2meet-data-optimizer/hivepress
|
|
* Description: HivePress + 12 擴充整合:13 adapter (core/reviews/bookings/messages/memberships/requests/favorites/statistics/tags/seo/social-links/blocks/marketplace) + 7 HPCT interceptor + 5 query interceptor + admin tab + CLI namespace
|
|
* Version: 0.5.3
|
|
* Requires at least: 6.0
|
|
* Tested up to: 6.9.4
|
|
* Requires PHP: 8.1
|
|
* Requires Plugins: 2meet-data-optimizer, hivepress
|
|
* Author: 2meet
|
|
* Author URI: https://2meet.io
|
|
* License: GPL-2.0-or-later
|
|
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
|
* Text Domain: tmdo-hivepress
|
|
*
|
|
* TablePrefix: ^(hpct_[a-z_0-9]+|wpdo_hot_hp_[a-z_0-9]+|wpdo_cold_hp_[a-z_0-9]+)$
|
|
* Domain Path: /languages
|
|
*
|
|
* @package TMDO_HIVEPRESS
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit;
|
|
}
|
|
|
|
define( 'TMDO_HIVEPRESS_VERSION', '0.5.3' );
|
|
define( 'TMDO_HIVEPRESS_PATH', plugin_dir_path( __FILE__ ) );
|
|
define( 'TMDO_HIVEPRESS_URL', plugin_dir_url( __FILE__ ) );
|
|
define( 'TMDO_HIVEPRESS_FILE', __FILE__ );
|
|
|
|
require_once TMDO_HIVEPRESS_PATH . 'includes/class-tmdo-hivepress-bootstrap.php';
|
|
|
|
require_once TMDO_HIVEPRESS_PATH . 'includes/back-compat-aliases.php';
|
|
/**
|
|
* Phase 3 任務:完成本 AddOn 的 includes/ 實作。
|
|
*
|
|
* @see ~/.claude/plans/wp-data-optimizer-2meet-data-optimizer-zesty-liskov.md
|
|
*/
|
|
add_action( 'plugins_loaded', array( 'TMDO_HP_Bootstrap', 'init' ), 6 );
|