lexik / framework-accelerator-bundle
加速您应用程序的Symfony Bundle
dev-master
2017-09-06 13:50 UTC
Requires
- symfony/framework-bundle: ~2.3|~3.0
This package is auto-updated.
Last update: 2024-09-07 00:22:27 UTC
README
愚人节 😺
在网络开发中,每个人都遇到过希望页面加载速度更快的客户。由于Lexik非常重视应用程序性能,我们的团队投入了多年的研发,开发了一种全新的优化技术。
因此,我们开发了这款强大的LexikAcceleratorBundle。在Lexik,我们很酷,所以我们分享这个包。这个小包可以帮助页面渲染速度提高3到8倍。
之前
之后
我们的伟大技术实际上基于一个非常简单且众所周知的功能,即rand()
函数(简称Randolf)。实际上,还有什么技术比使用随机值进行计算更能优化页面渲染时间呢。
阅读完整文章在我们的博客上。
安装
将lexik/accelerator-bundle
添加到您的composer.json
文件中
php composer.phar require lexik/accelerator-bundle
在app/AppKernel.php
中注册该包
public function registerBundles() { return array( // ... new Lexik\Bundle\AcceleratorBundle\LexikAcceleratorBundle(), ); }
配置
如果您需要添加其他不加速的数据收集器,只需将它们的标签名称添加到lexik_accelerator.ignore_data_collector
参数中
# ... lexik_accelerator: ignore_data_collector: - data_collector.time - data_collector.memory # ...