Converts your blog into a static site.
Have performance issues? StaticWP converts your blog into a static site, so you don't have to worry.
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.
Need to modify how StaticWP works? Look to an action or a filter to accomplish what you need.
Called prior to outputting a cache hit to the client.
Params:
$_SERVER['REQUEST_URI']
-string|null
Called after outputting a cache hit to the client.
Params:
$_SERVER['REQUEST_URI']
-string|null
Called when a requested post does not exist in the cache.
Params:
$_SERVER['REQUEST_URI']
-string|null
Called prior to saving a post's static HTML to disk.
Params:
$post_id
-integer
Called after saving a post's static HTML to disk.
Params:
$post_id
-integer
Allows a developer to modify the list of post types to preload.
Default/starting value is array('post', 'page')
.
Params:
$post_types
-array(string)
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)
Allows a developer to modify the contents of a post's static HTML prior to ouputting to the client.
Params:
$contents
-string
Allows a developer to modify the contents of a post's static HTML prior to saving to disk.
Params:
$contents
-string
$post_id
-integer
Allows a developer to modify the storage directory for the static HTML files.
Params:
$dir
-string
Release Date - 25th April, 2015
- Add actions.
- Add filters.
- Fix bug with
StaticWP\StaticWP
not qualifyingException
before its use.
Release Date - 25th April, 2015
- Fix issue with preload.
- Fix issue with uninstall.
Release Date - 9th March, 2015
- Fix misuse of
wp_mkdir
.
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.
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.
Release Date - 4th March, 2015
- Improve directory resolution.
Release Date - 4th March, 2015
- Fix bug with plugin name.
Release Date - 3rd March, 2015
- Add deactivation hook for cleanup.
- Add uninstall hook for cleanup.
- Move storage directory to uploads directory.
Release Date - 3rd March, 2015
- Initial release.
- Does basic static file generation.
- Sends file if it exists only for
GET
requests.
StaticWP is released under the MIT License.
See LICENSE for details.