定制 flectar/waterhole-sitemap 二次开发

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

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

flectar/waterhole-sitemap

最新稳定版本:0.2.0

Composer 安装命令:

composer require flectar/waterhole-sitemap

包简介

A comprehensive XML sitemap generator for Waterhole.

README 文档

README

Latest Stable Version Total Downloads License

Sitemap for Waterhole

A comprehensive, high-performance XML sitemap generator for Waterhole. This extension automatically generates SEO-compliant sitemaps for your community, helping search engines (Google, Bing...) discover and index your content faster.

🚀 Features

  • Zero configuration: Works out of the box.
  • Performance: 24-hour caching prevents database load, even with thousands of posts.
  • Segmented sitemaps: Separate endpoints for Posts, Channels, Pages, and Users.
  • SEO optimized: Includes lastmod, changefreq, and priority tags.
  • Safe: Read-only operation. Does not modify your database.

📦 Installation

Install via Composer. Run the following command in your Waterhole root directory:

composer require flectar/waterhole-sitemap

♻️ Updating

To update the extension, simply run:

composer update flectar/waterhole-sitemap:"*"
php artisan cache:clear

⚙️ Usage

Once installed, the sitemap is automatically available at:

  • https://your-domain.com/sitemap (Index)
  • https://your-domain.com/sitemap/posts
  • https://your-domain.com/sitemap/channels
  • https://your-domain.com/sitemap/users

Robots.txt To ensure search engines find your sitemap, add the following line to your public/robots.txt:

Sitemap: https://your-domain.com/sitemap

🔧 Configuration

The sitemap is cached for 24 hours by default to ensure optimal performance. To force a refresh (e.g., after a large content import), run:

php artisan optimize
php artisan cache:clear

📄 License

🔗 Useful Links

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固