aoe / update-refindex
扩展包含用于更新TYPO3 refindex的调度任务
11.1.1
2024-08-20 14:47 UTC
Requires
- php: ^8.0
- typo3/cms-core: ^11.5
- typo3/cms-scheduler: *
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpspec/prophecy-phpunit: ^2.0
- phpstan/phpstan: ^1.10
- phpunit/phpcov: *
- rector/rector: ^1.0
- symplify/easy-coding-standard: 12.1.14
- symplify/phpstan-rules: ^13.0.0
- typo3/testing-framework: ^7.0.4
README
这是一个TYPO3扩展,通过调度任务更新指定表的TYPO3-refindex。
构建信息
下载/安装
您可以从TER (TYPO3扩展仓库)下载并安装此扩展,或者使用composer。
composer require aoe/update-refindex
版权/许可
版权: (c) 2016 - 2024, AOE GmbH 许可: GPLv3, https://gnu.ac.cn/licenses/gpl-3.0.en.html
贡献
1. Fork the repository on Github
2. Create a named feature / bugfix branch (like `feature_add_something_new` or `bugfix\thing_which_does_not_work`)
3. Write your change
4. Write tests for your change (if applicable)
5. Run the tests, ensuring they all pass
6. Submit a Pull Request using Github
如何使用此扩展
-
此扩展提供什么功能?
通常,您可以使用以下shell命令更新所有表的TYPO3-refindex: [您的PHP安装路径] [您的TYPO3安装路径]/htdocs/Packages/Libraries/bin/./typo3 referenceindex:update 例如:/usr/bin/php /srv/www/typo3/htdocs/Packages/Libraries/bin/./typo3 referenceindex:update
但是,如果您只想更新指定表的TYPO3-refindex(因为您不需要更新所有表的索引)或者您想通过调度任务更新表,那么这个扩展就非常适合您!
-
如何配置此扩展?
- 创建名为'_cli_scheduler'的BE用户(该BE用户没有任何访问权限)
- 转到BE模块'调度程序'
- 添加一个新的调度任务
- 选择类'TYPO3更新refindex [update_refindex]'
- 选择要更新的表
- 选择其他调度任务设置(例如:开始和结束时间,类型和频率)
- 通过cronjob重复调用调度程序。cronjob必须执行以下shell命令:[您的PHP安装路径] [您的TYPO3安装路径]/htdocs/Packages/Libraries/bin/./typo3 scheduler:run task-id 例如:/usr/bin/php /srv/www/typo3/htdocs/Packages/Libraries/bin/./typo3 scheduler:run 5