VCL语法及变量
https://www.varnish-cache.org/docs/4.1/reference/vcl.html

Http header的作用
https://www.varnish-cache.org/docs/4.0/users-guide/increasing-your-hitrate.html

VSL查询匹配(Log)
https://www.varnish-cache.org/docs/4.0/reference/vsl-query.html
VSL tags
https://www.varnish-cache.org/docs/4.0/reference/vsl.html

管理
https://www.varnish-cache.org/docs/4.1/users-guide/run_cli.html
https://www.varnish-cache.org/docs/4.1/reference/varnish-cli.html#varnish-cli-7
https://www.varnish-cache.org/docs/4.1/reference/varnishadm.html

刷新缓存
ban req.url ~ gc
https://www.varnish-cache.org/trac/wiki/VCLExampleEnableForceRefresh

发现线上squid版本太早,准备升级,配置有很大的改变
参考官方配置文档
http://www.squid-cache.org/Doc/config/

反向代理的配置官方示例
http://wiki.squid-cache.org/ConfigExamples#Reverse_Proxy_.28Acceleration.29

了解几个核心配置选项:
http_port, cache_peer, cache_dir, acl, http_access, visible_hostname, cache_mem
squid配置项很多,也比较复杂,如果只是做个简单反向代理简单配置几项即可工作

 

排行
https://packagist.org/explore/popular

router [mvc]
https://github.com/nikic/FastRoute

monolog [log]
https://github.com/Seldaek/monolog

doctrine2 [orm]
https://github.com/doctrine/doctrine2

symfony/finder [filesystem]
https://github.com/symfony/finder

 

php开源的调试工具
new Debugbar -> addCollector  => Collector 收集数据 => render(js)

  • 数据收集(集合) DataCollector
  • 显示格式化工具 DataFormatter
  • 调试数据存储 Storage
  • js渲染工具 Resources(widget, debugbar)

扩展:
创建 Collector 继承 DataCollector, 根据需要创建 Resources/widgets/<name>

github: https://github.com/maximebf/php-debugbar
document: http://phpdebugbar.com/docs/

 

参考 http://php.net/manual/en/refs.calendar.php

https://github.com/fguillot/kanboard

PHP之依赖注入容器pimple
https://github.com/silexphp/Pimple
SplObjectStorage类

SimpleLogger
Syslog and Text files
https://github.com/fguillot/simpleLogger

SimpleValidator
https://github.com/fguillot/SimpleValidator

iCal iCalendars
https://github.com/markuspoerschke/iCal

Base32
https://github.com/NTICompass/PHP-Base32

有时不得加载jq, 记录一下简单常用的函数

没有同相同url地址判断

  • 订阅者注册推送地址,关注的事件
  • 服务端将消息存储redis队列
  • 服务端开N个进程,读取redis队列并推送到订阅者url
  • 推送错误进入错误队列
  • 服务定时发送错误队列消息

原型

  • swoole->addProcess(swoole_process)增加的进程不能start()
  • process结束后会被master进程再次创建,所以要么阻塞或进epoll循环
  • 参考 http://wiki.swoole.com/wiki/page/390.html
  • 与worker或task进程通信参考  http://wiki.swoole.com/wiki/page/363.html

 

  1. directive (DOM)
  2. filter (文本)
  3. computed(数据)
  4. Components (widget)

异步组件