定制 huskii/varnish-helper 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

huskii/varnish-helper

最新稳定版本:2.5.6

Composer 安装命令:

composer require huskii/varnish-helper

包简介

Prevent Varnish caching for selected pages, templates, CPTs in WordPress.

README 文档

README

A WordPress plugin developed by Huskii that allows you to prevent Varnish from caching specific parts of your site. Ideal for Combell-hosted sites or any server using Varnish caching.

🚀 Features

  • Disable Varnish cache for:
    • Archive pages, paginated views, and search results
    • Specific pages
    • Specific posts (any post type)
    • Page templates
    • Custom Post Types (CPTs)
    • CPT archive pages
  • Admin UI with searchable Select2 multi-select inputs
  • Export/Import your settings via JSON
  • Built-in Info and Support pages for clarity and help

📦 Installation

  1. Download or clone this repository into your WordPress plugins directory:

    git clone https://github.com/HuskiiBE/huskii-varnish-helper wp-content/plugins/huskii-varnish-helper
  2. Activate the plugin via the WordPress admin panel

  3. Go to Varnish Helper in the admin sidebar to configure

🎛 Composer Installation

If you're using Bedrock or another Composer-based WordPress setup:

  1. Add the repository to your composer.json:
"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/HuskiiBE/huskii-varnish-helper"
  }
]
  1. Require the package:
composer require huskii/varnish-helper
  1. Make sure "type": "wordpress-plugin" is supported in your project (e.g. via composer/installers or roots/bedrock).

🧩 Folder Structure

huskii-varnish-helper/
├── includes/
│   ├── cache-control.php
│   ├── export-import.php
│   ├── info-page.php
│   ├── settings-fields.php
│   ├── settings-pages.php
│   └── support-page.php
├── changelog.txt
├── composer.json
├── huskii-varnish-helper.php
├── readme.md
└── readme.txt

📞 Support

This plugin is developed and maintained by:

Christophe Vanleeuw
Huskii
📧 christophe.vanleeuw@huskii.be
📞 +32 499 61 92 81

For feature requests, issues or contributions, feel free to open an issue or submit a pull request.

📜 License

MIT © Huskii – use it, modify it, share it freely.

统计信息

  • 总下载量: 87
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-06-26