定制 phpwax/wildfire.cms_static_cache 二次开发

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

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

phpwax/wildfire.cms_static_cache

Composer 安装命令:

composer require phpwax/wildfire.cms_static_cache

包简介

Static cache plugin for Wildfire

README 文档

README

Creation:

  • Hooks in to "cms.save.success.finished" event, checks class of object is the same as the content model
  • Looks to check there are no rules excluding the item-
  • Adds readonly=1 argument to the url being used
  • Uses all attached urls as paths to save the pages by checking the URL_MAP_MODEL
  • Content from the url is then saved to file pathes matching those urls & the URL_MAP_MODEL is updated with the file path & time
  • base path is tmp/cache/static/PATH_BASED_ON_URL/.$format

To Use:

  • Create a symlink from tmp/cache/statics to public/statics (ln -s SITE_DIR/tmp/cache/statics/ public/statics)
  • Amend Apache / Nginx config files, see apache.example.htaccess & nginx.example.conf
  • the nginx / apache files are work in progress and may need further editing

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 5
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-02-19