定制 tallowandsons/craft-lantern 二次开发

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

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

tallowandsons/craft-lantern

最新稳定版本:1.0.1

Composer 安装命令:

composer require tallowandsons/craft-lantern

包简介

Template usage tracker for Craft CMS

README 文档

README

Banner

Lantern for Craft CMS

Lantern tracks how many times each of your templates is used and displays the data in a useful utility. This can help you make informed decisions about when to legacy templates to keep your codebase clean.

Lantern also provides an optional legacy templates folder, where you can move templates to if you're not quite ready to delete them.

🔧 Quick Start

1. Install Lantern

You can install Lantern by searching for "Lantern" in the Craft Plugin Store, or install manually using composer.

composer require tallowandsons/craft-lantern

Requirements

This plugin supports

  • Craft CMS 5.0.0 or later

Optional Configuration and commands

Automatic flushing and scanning

For performance, Lantern initially stores template logging data in the cache. This needs to be periodically flushed to the database. By default Lantern will do this automatically during a web request at most every 5 minutes. If you'd rather set this via a cronjob, you can do this using the php craft lantern/cache/flush command.

Lantern occasionally needs to scan the @templates directory to keep its inventory up to date. By default a scan will run once per day during a web request. If you'd rather, you can also run this via the php craft lantern/inventory/scan command.

Credits

Made with care and attention by Tallow & Sons

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-16