承接 slogsdon/staticwp 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

slogsdon/staticwp

Composer 安装命令:

composer require slogsdon/staticwp

包简介

Converts your WordPress blog into a static site

README 文档

README

Converts your blog into a static site.

Description

Have performance issues? StaticWP converts your blog into a static site, so you don't have to worry.

Installation

Upload the StaticWP plugin to your site, and activate it! Yep, that's it!

Optionally, you can set your web server to look in the storage directory (default is staticwp/_site/ in your uploads directory) for files prior to letting Wordpress take over control.

Hooks

Need to modify how StaticWP works? Look to an action or a filter to accomplish what you need.

Actions

staticwp_pre_cache_hit

Called prior to outputting a cache hit to the client.

Params:

  • $_SERVER['REQUEST_URI'] - string|null

staticwp_post_cache_hit

Called after outputting a cache hit to the client.

Params:

  • $_SERVER['REQUEST_URI'] - string|null

staticwp_cache_miss

Called when a requested post does not exist in the cache.

Params:

  • $_SERVER['REQUEST_URI'] - string|null

staticwp_pre_cache_update

Called prior to saving a post's static HTML to disk.

Params:

  • $post_id - integer

staticwp_post_cache_update

Called after saving a post's static HTML to disk.

Params:

  • $post_id - integer

Filters

staticwp_preload_post_types

Allows a developer to modify the list of post types to preload. Default/starting value is array('post', 'page').

Params:

  • $post_types - array(string)

staticwp_preload_{$post_type}_posts

Allows a developer to modify the list of posts to preload. By default, all published posts of type $post_type will be used and will be ordered by post_date in descending order.

Params:

  • $post_ids - array(integer)

staticwp_cache_hit_contents

Allows a developer to modify the contents of a post's static HTML prior to ouputting to the client.

Params:

  • $contents - string

staticwp_cache_update_contents

Allows a developer to modify the contents of a post's static HTML prior to saving to disk.

Params:

  • $contents - string
  • $post_id - integer

staticwp_cache_destination

Allows a developer to modify the storage directory for the static HTML files.

Params:

  • $dir - string

Changelog

1.5.0

Release Date - 25th April, 2015

  • Add actions.
  • Add filters.
  • Fix bug with StaticWP\StaticWP not qualifying Exception before its use.

1.4.2

Release Date - 25th April, 2015

  • Fix issue with preload.
  • Fix issue with uninstall.

1.4.1

Release Date - 9th March, 2015

  • Fix misuse of wp_mkdir.

1.4.0

Release Date - 9th March, 2015

  • Make preloading safer.
  • Ensure more than posts are compiled.
  • Allow comments to be added
  • Fix bug when files are recompiled.

1.3.0

Release Date - 4th March, 2015

  • Refactor frontend and admin into separate classes.
  • Abstracted HTML into templates and StaticWPView.
  • Add admin menu pages.
  • Allow users to preload site.

1.2.0

Release Date - 4th March, 2015

  • Improve directory resolution.

1.1.1

Release Date - 4th March, 2015

  • Fix bug with plugin name.

1.1.0

Release Date - 3rd March, 2015

  • Add deactivation hook for cleanup.
  • Add uninstall hook for cleanup.
  • Move storage directory to uploads directory.

1.0.0

Release Date - 3rd March, 2015

  • Initial release.
  • Does basic static file generation.
  • Sends file if it exists only for GET requests.

License

StaticWP is released under the MIT License.

See LICENSE for details.

slogsdon/staticwp 适用场景与选型建议

slogsdon/staticwp 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 8, 最近一次更新时间为 2015 年 04 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「cache」 「wordpress」 「static」 「wp」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 slogsdon/staticwp 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 slogsdon/staticwp 我们能提供哪些服务?
定制开发 / 二次开发

基于 slogsdon/staticwp 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-04-16