| 开发者 | staatic |
|---|---|
| 更新时间 | 2022年8月17日 22:04 |
| PHP版本: | 7.0 及以上 |
| WordPress版本: | 6.0.1 |
| 版权: | BSD-3-Clause |
/wp-content/plugins/ directory;Staatic will convert your dynamic WordPress site into a static site consisting of HTML assets, images, scripts and other assets. By removing WordPress (and even PHP) from the equation, requested pages from your site can be served instantly, instead of having to be generated on the fly.
Caching plugins are great to improve the performance of your site as well, however they (usually) don’t remove WordPress itself from the stack, which adds additional latency. Also by using Staatic, you are free to host your site anywhere. You could for example choose a very fast cloud provider or content delivery network, providing even more performance.
No. At least, it should not. If the static version of your site does differ, it is probably because of invalid HTML in your original WordPress site, which could not be converted correctly. In that case you can verify the validity of your HTML using a validator service like W3C Markup Validation Service.
Since your site is converted into static HTML pages, the attack surface is greatly reduced. That means less need to worry about keeping WordPress, plugins and themes up-to-date.
Unfortunately not. Because your site is converted into a static site, dynamic server side functions are not available. Plugins that require this, for example to process forms, retrieve data externally etc., do not work out of the box, or are not supported at all. You will need to make modifications to make such features work, or you can choose Staatic Premium which adds such functionality automatically. For more information, please visit staatic.com.
Staatic has been optimized to work in most environments. The major requirements are that the plugin is able to write to the work directory and connect to your WordPress installation.
If you have any questions or problems, please have a look at our documentation and FAQ first. If you cannot find an answer there, feel free to open a topic on our Support Forums. Want to get in touch directly? Please feel free to contact us. We will get back to you as soon as possible
staatic_netlify_config_extra filter hook to allow additions to the generated netlify.toml file when using the Netlify deployment method.staatic_additional_urls and staatic_additional_paths filter hooks to allow additional urls and paths to be dynamically added./wp-sitemap.xml./robots.txt.