| 开发者 | micromax2 |
|---|---|
| 更新时间 | 2026年7月13日 00:18 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 |
| 版权网址: | 版权信息 |
pishtop_ai_post_text to modify source text dynamically, and pishtop_ai_recommendations_transient_key to route custom transient cache partitions./wp-content/plugins/pishtop-content-suggestion-with-ai directory, or install the plugin through the WordPress plugins screen directly.[pishtop_suggestions count="5" template="default_list"] to insert suggestions on your pages/posts.You can insert suggestions using the shortcode [pishtop_suggestions count="5" template="default_list"] on your posts.
The plugin automatically pulls all available embedding and chat models from the OpenRouter API. You can choose any supported model (e.g., Google Gemini, OpenAI GPT, Cohere) in the Matching Engine settings tab.
You can set daily quota limits for both embedding generation and LLM re-ranking. Once a limit is reached, the plugin will seamlessly fall back to native WordPress matching to prevent any additional charges. Quotas reset at local midnight.
Yes! Under the Matching Engine settings tab, you can disable the "Enable LLM Re-ranking" option. In this "Embedding-Only" mode, the plugin recommends items based purely on their local vector similarity, completely bypassing the OpenRouter LLM chat API call to save on cost and improve page load speeds. You can also configure a "Similarity Threshold (%)" so only items above a certain similarity match score are recommended.
Yes! When used inside WooCommerce Cart, Checkout, or Order Received (Thank You) pages, the plugin dynamically extracts active cart products or purchased order items to match suggestions, rather than using generic page titles. Out-of-stock items can also be hidden.
To prevent user cache cross-leakage, the caching transient keys are dynamically partitioned per customer session using MD5 hashes of cart items and order IDs.
If a popular post cache expires, a mutex lock is set. Parallel visitor hits on the page immediately receive native fallback recommendations while the first request fetches the new OpenRouter results in the background, keeping page loads fast and preventing multiple duplicate API charges.
The plugin provides two filters:
pishtop_ai_post_text (filters post source text before embedding).pishtop_ai_recommendations_transient_key (filters cache keys).The log table is capped at 5,000 rows. Pruning prunes old rows down to a configured ratio (e.g., 90%) to prevent database stress. A warning is logged if high volume causes early truncation.
enable_cache toggle.pishtop_rec_v{version}_) to guarantee cache invalidation on external object caches (like Redis or Memcached).ONLY_FULL_GROUP_BY SQL mode.tt_ids (term taxonomy IDs) for strict relationship matching.[ai_related_posts] completely to enforce proper prefixing standards and simplify usage.