netlogix/esi-rendering
Composer 安装命令:
composer require netlogix/esi-rendering
包简介
Render content in fusion as esi:include
README 文档
README
This package provides a simple way to render edge side includes in Neos. This alows you to individually cache parts of the page (e.g. header/footer).
We recommend using this package together with flowpack/varnish for Varnish integration.
Install package
composer require netlogix/esi-rendering
Usage
To render a fusion path as ESI, you can use the Netlogix.EsiRendering:RenderAsEsi Fusion implementation:
renderer = afx`
<p>This is rendered outside of the esi</p>
<Netlogix.EsiRendering:RenderAsEsi node={props.site} cacheIdentifier="my-esi">
<p>This is rendered inside of the esi</p>
<p>The given node is available as {node}</p>
</Netlogix.EsiRendering:RenderAsEsi>
`
This will render a <esi:include src="..."> tag after the first <p>.
ESIs are not used in the Neos backend, instead the content will be rendered directly.
Debugging
To get the ESI uri, you can set the following setting to true:
Netlogix: EsiRendering: debug: true
This will render a link before the ESI:
<link rel="esi:include" esi-identifier="my-esi" context-node="/sites/my-site@live" href="/esirendering?fusionPath=...">
This is enabled by default for the Development context.
netlogix/esi-rendering 适用场景与选型建议
netlogix/esi-rendering 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 12.52k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「esi」 「varnish」 「Neos」 「nginx」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 netlogix/esi-rendering 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 netlogix/esi-rendering 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 netlogix/esi-rendering 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An improved history backend module for Neos
Varnish cache bundle for Symfony 2
Speed up your TYPO3 installation: add Critical CSS (Above The Fold) inline, minify the HTML of your website, use subdomains as CDN to reduce page load, manage proxy-caching (e.g with Varnish) via page-properties.
Create link to static resources with cache-breaking segment based on md5 of the file
A standalone ESI (Eve Swagger Interface) Client Library using kevinrob/guzzle-cache-middleware
WordPress plugin to extend Varnish HTTP Purge to purge the cache on multiple backends.
统计信息
- 总下载量: 12.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-09