tms/cachemonitor

Neos CMS 中内容缓存监控和分析的简单数据库驱动解决方案。

安装: 170

依赖项: 0

建议者: 0

安全性: 0

星标: 0

关注者: 1

分支: 0

开放问题: 0

类型:neos 插件

dev-main 2022-04-21 10:35 UTC

This package is auto-updated.

Last update: 2024-09-21 15:50:24 UTC


README

Neos CMS 中内容缓存监控和分析的简单数据库驱动解决方案。

功能

  • Flowpack.FullPageCache 支持:跟踪缓存 HITMISSSKIP(同时记录不允许的查询字符串和 cookie 名称)
  • 分析日志数据的功能命令
  • 跟踪内容缓存刷新
  • 跟踪具有 TTL 的内容缓存
  • 后端模块

安装

⚠️⚠️⚠️ 警告:此代码目前为实验性代码,请勿依赖它,并自行承担使用风险。如果您认为这个包很有用,我将非常乐意接受任何形式的贡献。

composer require tms/cachemonitor dev-main

用法

Flow 命令

运行 ./flow cachemonitor 查看可用 Flow 命令的完整列表。

设置

包在无需任何进一步配置的情况下开始记录日志。如果您需要自定义某些内容,请参阅默认配置。

Tms:
  CacheMonitor:
    # Settings for the cache flush logging
    logCacheFlush:
      cacheIdentifiers:
        - # Optional "name" key is used as table header in the CLI command output
          identifier: 'Neos_Fusion_Content'
          name: 'Content Cache'

    # Settings for logging Flowpack.FullPageCache events
    logFullPageCache:
      # Which Flowpack.FullPageCache cache info states you'd like to log?
      # One benefit of using Flowpack.FullPageCache is that there are zero SQL queries involved for cache hits.
      # Therefore we add 'HIT' logging only in development context by default.
      cacheInfos: ['SKIP', 'MISS']

      # Flownative.FullPageCache uses a cookies & query string whitelist approach to decide if a response is fully cachable.
      # Over time you most likely need to adjust the FullPageCache configuration as requests with unknown cookies and/or
      # query strings hit your site. These logs help you to keep track of new cookie and/or query strings.
      # Run './flow cachemonitor:info' to see the results
      disallowedCookieParams: true
      disallowedQueryParams: true

致谢

开发由 tms.development - 网络营销和 Neos CMS 代理 支持