저는 GAE에 워드 프레스 설치가 있습니다. 그것은 매우 희박하게 업데이트 될 웹 사이트이며 매일 방문자 수가 거의 없습니다 (최대 100 개). cloudSQL 비용을 최소화하기 위해이 웹 사이트를 캐시하고 싶습니다.CloudSQL 인스턴스 시간 단축 (wordpress)
CloudSQL 인스턴스가 시작되는 것을 최소화하려면 어떻게해야합니까?
MEMCACHED 플러그인과 BATCACHED Plugin을 설치했습니다.
내 WP-설정은 다음과 같습니다
$batcache = [
'seconds'=>0,
'max_age'=>300*60, // 300 minutes
'debug'=>false
];
내 애플리케이션 제목 : 나는 워드 프레스 내 CloudSQL 인스턴스를 시작을 줄이기 위해 모든 방법을 알고 싶습니다
application: MY ID
version: 104
runtime: php
api_version: 1
default_expiration: "1d"
handlers:
- url: /(.*\.(htm$|html$|css$|js$))
static_files: wordpress/\1
upload: wordpress/.*\.(htm$|html$|css$|js$)
application_readable: true
- url: /wp-content/(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/wp-content/\1
upload: wordpress/wp-content/.*\.(ico$|jpg$|png$|gif$)
application_readable: true
- url: /(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/\1
upload: wordpress/.*\.(ico$|jpg$|png$|gif$)
application_readable: true
- url: /wp-admin/(.+)
script: wordpress/wp-admin/\1
secure: always
- url: /wp-admin/
script: wordpress/wp-admin/index.php
secure: always
- url: /wp-login.php
script: wordpress/wp-login.php
secure: always
- url: /wp-cron.php
script: wordpress/wp-cron.php
login: admin
- url: /xmlrpc.php
script: wordpress/xmlrpc.php
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
static_files: wordpress/\1
upload: wordpress/(.*\.(appcache|manifest))
expiration: "0m"
application_readable: true
- url: /(.*\.atom)
mime_type: application/atom+xml
static_files: wordpress/\1
upload: wordpress/(.*\.atom)
expiration: "1h"
application_readable: true
- url: /(.*\.crx)
mime_type: application/x-chrome-extension
static_files: wordpress/\1
upload: wordpress/(.*\.crx)
application_readable: true
- url: /(.*\.css)
mime_type: text/css
static_files: wordpress/\1
upload: wordpress/(.*\.css)
application_readable: true
- url: /(.*\.eot)
mime_type: application/vnd.ms-fontobject
static_files: wordpress/\1
upload: wordpress/(.*\.eot)
application_readable: true
- url: /(.*\.htc)
mime_type: text/x-component
static_files: wordpress/\1
upload: wordpress/(.*\.htc)
application_readable: true
- url: /(.*\.html)
mime_type: text/html
static_files: wordpress/\1
upload: wordpress/(.*\.html)
expiration: "1h"
application_readable: true
- url: /(.*\.ico)
mime_type: image/x-icon
static_files: wordpress/\1
upload: wordpress/(.*\.ico)
expiration: "7d"
application_readable: true
- url: /(.*\.js)
mime_type: text/javascript
static_files: wordpress/\1
upload: wordpress/(.*\.js)
application_readable: true
- url: /(.*\.json)
mime_type: application/json
static_files: wordpress/\1
upload: wordpress/(.*\.json)
expiration: "1h"
application_readable: true
- url: /(.*\.m4v)
mime_type: video/m4v
static_files: wordpress/\1
upload: wordpress/(.*\.m4v)
application_readable: true
- url: /(.*\.mp4)
mime_type: video/mp4
static_files: wordpress/\1
upload: wordpress/(.*\.mp4)
application_readable: true
- url: /(.*\.(ogg|oga))
mime_type: audio/ogg
static_files: wordpress/\1
upload: wordpress/(.*\.(ogg|oga))
application_readable: true
- url: /(.*\.ogv)
mime_type: video/ogg
static_files: wordpress/\1
upload: wordpress/(.*\.ogv)
application_readable: true
- url: /(.*\.otf)
mime_type: font/opentype
static_files: wordpress/\1
upload: wordpress/(.*\.otf)
application_readable: true
- url: /(.*\.rss)
mime_type: application/rss+xml
static_files: wordpress/\1
upload: wordpress/(.*\.rss)
expiration: "1h"
application_readable: true
- url: /(.*\.safariextz)
mime_type: application/octet-stream
static_files: wordpress/\1
upload: wordpress/(.*\.safariextz)
application_readable: true
- url: /(.*\.(svg|svgz))
mime_type: images/svg+xml
static_files: wordpress/\1
upload: wordpress/(.*\.(svg|svgz))
application_readable: true
- url: /(.*\.swf)
mime_type: application/x-shockwave-flash
static_files: wordpress/\1
upload: wordpress/(.*\.swf)
application_readable: true
- url: /(.*\.ttf)
mime_type: font/truetype
static_files: wordpress/\1
upload: wordpress/(.*\.ttf)
application_readable: true
- url: /(.*\.txt)
mime_type: text/plain
static_files: wordpress/\1
upload: wordpress/(.*\.txt)
application_readable: true
- url: /(.*\.unity3d)
mime_type: application/vnd.unity
static_files: wordpress/\1
upload: wordpress/(.*\.unity3d)
application_readable: true
- url: /(.*\.webm)
mime_type: video/webm
static_files: wordpress/\1
upload: wordpress/(.*\.webm)
application_readable: true
- url: /(.*\.webp)
mime_type: image/webp
static_files: wordpress/\1
upload: wordpress/(.*\.webp)
application_readable: true
- url: /(.*\.woff)
mime_type: application/x-font-woff
static_files: wordpress/\1
upload: wordpress/(.*\.woff)
application_readable: true
- url: /(.*\.xml)
mime_type: application/xml
static_files: wordpress/\1
upload: wordpress/(.*\.xml)
expiration: "1h"
application_readable: true
- url: /(.*\.xpi)
mime_type: application/x-xpinstall
static_files: wordpress/\1
upload: wordpress/(.*\.xpi)
application_readable: true
# audio files
- url: /(.*\.(mid|midi|mp3|wav))
static_files: wordpress/\1
upload: wordpress/(.*\.(mid|midi|mp3|wav))
application_readable: true
# windows files
- url: /(.*\.(doc|exe|ppt|rtf|xls))
static_files: wordpress/\1
upload: wordpress/(.*\.(doc|exe|ppt|rtf|xls))
application_readable: true
# compressed files
- url: /(.*\.(bz2|gz|rar|tar|tgz|zip))
static_files: wordpress/\1
upload: wordpress/(.*\.(bz2|gz|rar|tar|tgz|zip))
application_readable: true
- url: /wp-(.+).php
script: wordpress/wp-\1.php
- url: /(.+)?/?
script: wordpress/index.php
. 또한 캐싱이 올바르게 작동하는지 확인하는 방법을 알고 싶습니다.
현재, 나는 워드 프레스에 로그인하지 않고 페이지를 방문 할 경우에도, 그것은 캐시가 제대로
정적 페이지는 어떻게 만들어지고 제공됩니까? App Engine은 파일 처리를 허용하지 않습니다. 그런 플러그인이 작동 할 수 있습니까? –
S3로 CDN으로 작동하는 플러그인부터 시작하여 그것이 얼마나 먼지 보겠습니다. –
@harvey_slash : 해결 방법, 즉 작동하는 캐시 플러그인을 찾았습니까? 나에게는 같은 문제가있다. 거의 업데이트되지 않은 batcached 사이트가 있는데,이 사이트는 SQL 시간/월 중 약 30 일을 여전히 사용하고 있는데 이는 상당히 나쁘다. – MH114