定制 b13/warmup 二次开发

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

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

b13/warmup

最新稳定版本:2.0.0

Composer 安装命令:

composer require b13/warmup

包简介

This extension adds a CLI script to warmup the caches.

README 文档

README

This extension provides a simple command line tool for warming up certain caches.

This extension is especially useful for large installations that deploy and then flush caches.

The current state is intended for TYPO3 v8 LTS, and handles the Rootline Cache.

For TYPO3 v9+ LTS, pages can be called as well.

Rootline Cache

One of the main issues here is a large installation with lots of pages. A cache:flush via TYPO3 console will empty the information on the rootline cache. When a visitor visits the page again after flushing the cache, and the page has 100 links to other pages, the rootline for each of the page will be built. This could take several seconds. A second visitor could visit the page and then see the nice "Page is being generated" screen. This can be improved!

A command line script runs directly after cache:flush and warms up all caches. This is mostly cache_core (by running the script itself) and cache_rootline.

./typo3/sysext/core/bin/typo3 cache:warmup

Running the script multiple times does not matter, as it solely acts as a wrapper for fetching the rootline for a page. If it is already in the cache, the command runs smoothly.

Installation

Install the extension by extracting the contents of this folder into typo3conf/ext/warmup and install the extension via the Extension Manager.

Alternatively, you can use composer via composer req b13/warmup.

Notes

Note that this extension does not take workspaces or mount points into account currently! Contributions are welcome.

Credits

  • Benni Mack

License

GPL2.0+, see LICENSE.txt for more details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2019-06-18