确保LastEdited字段被索引,以便使部分内容的性能与大型站点保持一致
github.com/gordonbanderson/weboftalent-index-lastedited
源代码
问题
安装量: 1,071
依赖项: 0
建议者: 0
安全性: 0
星标: 1
关注者: 1
分支: 1
开放性问题: 0
类型:silverstripe-module
Requires
Requires (Dev)
None
Suggests
Provides
Conflicts
Replaces
MIT 0701d95f3c033cf8bbf24eeaa1412d1cf31bd111
performancecachingsilverstripepartialsindexingweboftalentlastedited
This package is auto-updated.
Last update: 2024-08-27 08:19:08 UTC
#索引最后修改
默认情况下,SilverStripe不会索引LastEdited字段,这是一个用于部分缓存的字段。在大型网站上,这可能会影响性能。该模块将索引添加到SiteTree、Member和Group。
#将最后修改添加到DataObjects在你的代码库中适当的位置的_config目录中创建或追加现有的extension.yml文件。
--- Name: your-site-specific-last-edited-extensions --- SiteTree: extensions: ['IndexLastEditedExtension']