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
其他信息
- 授权协议: MIT
- 更新时间: 2013-02-19