
內容簡介
Google App Engine for WordPress 可以讓你的 WordPress 网站在App Engine PHP運行時無縫運作。
此外掛程式添加了對 WordPress 核心功能的覆蓋,可以使用App Engine基礎架構,例如郵件功能並將媒體上傳到Google Cloud Storage。
注意:此插件專為Google App Engine而設計,無法與任何其他主機一起使用。
快取
我們建議使用 Batcache 和 Memcache 插入以快取您的 WordPress 網站。 Batcache 能夠與 Memcache 配合使用,將您的網站快取在 App Engine Memcache 伺服器上,並確保盡可能少地使用CloudSQL以減少成本。
如果您網站的更新頻率偏低,我們建議在您的 wp-config.php 中加入以下配置:
$batcache = [
'seconds' => 0,
'max_age' => 60 * 30, // 30 分钟。
];
這將為您的網站頁面提供一年的快取,並確保它們不會在Memcache中過期。在此設置和完整啟動高速緩存後, 所有匿名用戶將通過Memcache提供,而無需訪問CloudSQL。
請注意,使用WordPress內置的評論將使評論者繞過緩存,因此,如果您想在完全緩存的網站上使用評論,我們建議使用 Intense Debate 或Disqus (已禁用同步)。
外掛標籤
開發者團隊
② 後台搜尋「Google App Engine for WordPress」→ 直接安裝(推薦)
原文外掛簡介
Google App Engine for WordPress enables seamless operation of your
WordPress-powered site on the App Engine PHP runtime.
This plugin adds overrides to core functionality in WordPress to use App Engine
infrastructure, such as the Mail functionality, and uploading media to Google
Cloud Storage
Note: This plugin is designed to be used with Google App Engine only and will not work with any other hosting.
Caching
We recommend using the Batcache and Memcache drop-ins to cache your
WordPress site. Batcache integrates with Memcache to cache your site on the App
Engine memcache server and will ensure that CloudSQL is used as little as
possible, reducing your costs.
If you host a rarely updated site, we suggest adding the following configuration
to your wp-config.php:
$batcache = [
'seconds' => 0,
'max_age' => 60 * 30, // 30 minutes.
];
This will cache pages on your site for a year and ensure that they do not expire
in memcache. With this setup and a fully primed cache, all anonymous users will
be served via Memcache with no hits to CloudSQL.
Note that using WordPress’ built-in comments will enable commenters to bypass
the cache, so if you want to use comments on a fully-cached site, we recommend
Intense Debate or Disqus (with the synchronization disabled).
