{"id":1259,"date":"2009-05-08T22:25:38","date_gmt":"2009-05-08T13:25:38","guid":{"rendered":"http:\/\/akimoto.jp\/blog\/?p=1259"},"modified":"2009-05-08T22:29:26","modified_gmt":"2009-05-08T13:29:26","slug":"use-sfsupercacheplugin-on-symfony12","status":"publish","type":"post","link":"https:\/\/akimoto.jp\/blog\/2009\/05\/08\/use-sfsupercacheplugin-on-symfony12\/","title":{"rendered":"symfony1.2\u3067sfSuperCachePlugin\u3092\u4f7f\u3046"},"content":{"rendered":"<p>symfony\u3067super cache\u3092\u5b9f\u73fe\u3059\u308b<a href=\"http:\/\/www.symfony-project.org\/plugins\/sfSuperCachePlugin\">sfSuperCachePlugin<\/a>\u306e\u3001symfony1.2\u3067\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3002<\/p>\n<p>super cache\u306f\u3001\u52d5\u7684\u306b\u30da\u30fc\u30b8\u3092\u751f\u6210\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u3001\u307b\u3068\u3093\u3069\u306e\u5834\u5408\u306bWeb\u30b5\u30fc\u30d0\u306e\u4ed5\u7d44\u307f\u3092\u4f7f\u3063\u3066\u9759\u7684\u306b\u4f5c\u6210\u3057\u305fhtml(\u7b49)\u3092\u76f4\u63a5\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306b\u8fd4\u3059\u3053\u3068\u3067\u30b5\u30fc\u30d0\u306e\u5fdc\u7b54\u3092\u65e9\u304f\u3057\u3001\u30b5\u30fc\u30d0\u306e\u8ca0\u8377\u3082\u8efd\u6e1b\u3059\u308b\u624b\u6cd5\u3067\u3059\u3002<\/p>\n<p>\u3088\u304f\u77e5\u3089\u308c\u3066\u3044\u308b\u306e\u306fWordPress\u306eSuperCache\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u3059\u3002\u3053\u308c\u3092\u6b63\u3057\u304f\u8a2d\u5b9a\u3059\u308c\u3070\u3001\u52d5\u7684\u751f\u6210\u3067\u3042\u308a\u306a\u304c\u3089\u9759\u7684\u751f\u6210\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u6301\u3064\u30d6\u30ed\u30b0\u3092\u904b\u55b6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u307e\u3067\u81ea\u4f5c\u3067super cache\u76f8\u5f53\u306e\u4ed5\u7d44\u307f\u3092\u4f5c\u3063\u305f\u3053\u3068\u306f\u3042\u308b\u306e\u3067\u3059\u304c\u3001symfony\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u3042\u308b\u306e\u3067\u3053\u308c\u304c\u4f7f\u3048\u308b\u304b\u3069\u3046\u304b\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a\u3001<a href=\"http:\/\/www.symfony-project.org\/plugins\/sfSuperCachePlugin\">README<\/a>\u306b\u3042\u308b\u3088\u3046\u306b\u9032\u3081\u3066\u307f\u307e\u3059\u3002<\/p>\n<h3>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>\u307e\u305a\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306fsymfony1.0\u306b\u3057\u304b\u5bfe\u5fdc\u3057\u3066\u3044\u307e\u305b\u3093\u306e\u3067\u3001\u666e\u901a\u306bsymfony\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3059\u308b\u3068\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u5931\u6557\u3057\u305f\u3068\u304d\u306f\u3044\u3064\u3082\u305d\u3046\u3067\u3059\u304c\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6301\u3063\u3066\u304d\u3066\u81ea\u5206\u3067\u5c55\u958b\u3057\u3066\u307f\u307e\u3059\u3002\u30d0\u30fc\u30b8\u30e7\u30f3\u30c1\u30a7\u30c3\u30af\u304c\u5165\u3063\u3066\u308b\u3060\u3051\u306e\u3053\u3068\u3082\u591a\u3044\u306e\u3067\u3001\u3053\u308c\u3067\u52d5\u3044\u3066\u3057\u307e\u3046\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>> wget http:\/\/plugins.symfony-project.org\/get\/sfSuperCachePlugin\/sfSuperCachePlugin-1.0.5.tgz<\/p>\n<p>\u5c55\u958b\u3057\u305f\u3089\u3001sfSuperCachePlugin-1.0.5 \u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u3092\u3001symfony\u306e\u4f5c\u696d\u30d5\u30a9\u30eb\u30c0\u4ee5\u4e0b\u306e plugins\/sfSuperCachePlugin \u3068\u3044\u3046\u30d5\u30a9\u30eb\u30c0\u306b\u30ea\u30cd\u30fc\u30e0\u3057\u3064\u3064\u30b3\u30d4\u30fc\u3057\u307e\u3059\u3002<\/p>\n<p>\u3042\u3068\u306f\u3001plugins\u306e\u4e0b\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u5168\u90e8\u8aad\u3080\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308c\u3070symfony cc\u3059\u308b\u3060\u3051\u3067\u81ea\u52d5\u7684\u306b\u30ed\u30fc\u30c9\u3055\u308c\u307e\u3059\u3002\u306a\u3063\u3066\u306a\u3051\u308c\u3070\u3001config\/ProjectConfiguration.class.php \u306esetup()\u3067\u3001enableAllPluginsExcept()\u7b49\u3092\u4f7f\u3063\u3066\u8aad\u307f\u8fbc\u307e\u308c\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u306b\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u306e\u307e\u307e\u5148\u3078\u9032\u3093\u3067\u3044\u304f\u3068\u30011.0\u30681.2\u306e\u975e\u4e92\u63db\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308a\u307e\u3059\u3002\u5148\u306b\u4fee\u6b63\u7b87\u6240\u3092\u793a\u3059\u3068\u3001sfSuperCacheFilter\u306e\u6b21\u306e\u884c<\/p>\n<blockquote><p><code lang=\"php\"><br \/>\n$uri = sfRouting::getInstance()->getCurrentInternalUri();<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u3092\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<blockquote><p><code lang=\"php\"><br \/>\n$uri = sfContext::getInstance()->getRouting()->getCurrentInternalUri();<br \/>\n<\/code><\/p><\/blockquote>\n<h3>\u30ad\u30e3\u30c3\u30b7\u30e5\u683c\u7d0d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u7528\u610f<\/h3>\n<p>(symfony\u30a2\u30d7\u30ea)\/web \u4ee5\u4e0b\u306b\u3001\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u306e\u7f6e\u304d\u5834\u3092\u4f5c\u308a\u307e\u3059\u3002README\u306b\u306a\u3089\u3063\u3066&#8221;cache&#8221;\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3057\u307e\u3059<\/p>\n<p>> cd web<br \/>\n> mkdir cache<\/p>\n<p>Un*x\u306e\u5834\u5408\u306f\u30aa\u30fc\u30ca\u30fc\u3084\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3082\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044<\/p>\n<h3>\u30d5\u30a3\u30eb\u30bf\u3092\u565b\u307e\u305b\u308b<\/h3>\n<p>\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u4e2d\u306b\u5165\u3063\u3066\u308bphp\u306f\u3001\u30d5\u30a3\u30eb\u30bf\u30d5\u30a1\u30a4\u30eb\u4e00\u500b\u3060\u3051\u3067\u3059\u3002\u3053\u308c\u3092(frontend)\/filters.yml \u306e # insert your own filters here \u306e\u3068\u3053\u308d\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<blockquote><p>\n<code><\/p>\n<pre>\r\nsupercache:\r\n  class: sfSuperCacheFilter\r\n  param:\r\n    cache_dir: cache\r\n    with_host: false\r\n<\/pre>\n<p><\/code>\n<\/p><\/blockquote>\n<p>\u30db\u30b9\u30c8\u540d\u3092\u8907\u6570\u6301\u305f\u306a\u3044\u306a\u3089with_host\u306ffalse\u3067\u3044\u3044\u3067\u3059\u3002\u6301\u3064\u5834\u5408\u3001\u3053\u306e\u5f8c\u306e\u8a2d\u5b9a\u3082\u6e96\u3058\u3066\u5909\u308f\u308b\u306e\u3067README\u3092\u8aad\u3093\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u307e\u305a\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u306b\u884c\u304f\u3088\u3046\u306b\u3001.htaccess\u3092\u4fee\u6b63<\/h3>\n<p>web\/.htaccess \u3092\u66f8\u304d\u63db\u3048\u307e\u3059\u3002\u4ee5\u4e0b\u306e2\u884c\u306e\u3068\u3053\u308d\u3092\u3001<\/p>\n<blockquote><p><code><br \/>\n RewriteRule ^$ index.html [QSA]<br \/>\n RewriteRule ^([^.]+)$ $1.html [QSA]<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u305f\u3068\u3048\u3070\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304d\u63db\u3048\u307e\u3059\u3002<\/p>\n<blockquote><p><code><br \/>\n  RewriteCond %{REQUEST_METHOD} GET<br \/>\n  RewriteCond %{DOCUMENT_ROOT}\/symfony_apps\/sandbox\/web\/cache\/supercache\/%{PATH_INFO}.php -f<br \/>\n  RewriteRule ^(.*)$ cache\/$1.php [L]<br \/>\n<\/code><\/p><\/blockquote>\n<p>\u3053\u306e\u66f8\u304d\u63db\u3048\u3001README\u306b\u3064\u3044\u3066\u304d\u305fREQUEST_URI\u3092\u4f7f\u3063\u305f\u3082\u306e\u304c\u52d5\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u3001\u81ea\u5206\u3067\u52d5\u304f\u3082\u306e\u3092\u63a2\u3057\u3066\u3053\u3093\u306a\u98a8\u306b\u3057\u307e\u3057\u305f\u3002\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u30a2\u30d7\u30ea\u3092\u7f6e\u3044\u305f\u308a\u3057\u306a\u3051\u308c\u3070README\u306e\u307e\u307e\u306e\u3067\u3082\u52d5\u304f\u306e\u304b\u3082\u3002mod_rewrite\u306f\u96e3\u3057\u304f\u3066\u3088\u304f\u308f\u304b\u3089\u3093\u3067\u3059\u3002<\/p>\n<blockquote><p>\nmod_rewrite\u304c\u601d\u3046\u3088\u3046\u306b\u52d5\u304b\u306a\u3044\u3068\u304d\u306f\u3001\u3068\u306b\u304b\u304fhttpd.conf\u306e\u8a2d\u5b9a\u3067rewrite log\u3092\u53d6\u308a\u3001\u51fa\u305f\u30ed\u30b0\u3092\u8aad\u307f\u307e\u3057\u3087\u3046\u3002\n<\/p><\/blockquote>\n<p>\u3084\u3063\u3066\u308b\u306e\u306f\u3001<\/p>\n<blockquote><p>\n<code><br \/>\n  web\/cache\/\u307b\u3052\u307b\u3052\/\u3075\u304c\u3075\u304c.php<br \/>\n<\/code>\n<\/p><\/blockquote>\n<p>\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u30a2\u30af\u30bb\u30b9\u3055\u308c\u3066\u3001\u3082\u3057\u305d\u308c\u304c\u3042\u3063\u305f\u3089\u3001\u305d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u306b\u5b9f\u884c\u3057\u3066\u8868\u793a\u3057\u3066\u3057\u307e\u3046\u3001\u3068\u3044\u3046\u51e6\u7406\u3067\u3059\u3002<\/p>\n<p>\u3082\u3057\u30d5\u30a1\u30a4\u30eb\u304c\u7121\u304b\u3063\u305f\u3089\u3001mod_rewrite\u306e\u51e6\u7406\u306f\u4e0b\u65b9\u306e\u30eb\u30fc\u30eb\u306b\u843d\u3061\u3066\u884c\u3063\u3066\u3001\u3044\u3064\u3082\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9(web\/index.php)\u3092\u547c\u3076\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3067\u3001static\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u3066\u308c\u3070\u305d\u306e\u307e\u307e\u8868\u793a\u3001\u51fa\u6765\u3066\u306a\u3051\u308c\u3070symfony\u3092\u666e\u901a\u306b\u5b9f\u884c(\u3057\u3001filters.yml\u3067\u631f\u3093\u3060\u30d5\u30a3\u30eb\u30bf\u304cstatic\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210)\u3001\u3068\u3044\u3046super cache\u304c\u5b8c\u6210\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>super cache\u3092\u52d5\u304b\u3059\u6761\u4ef6<\/h3>\n<p>\u30d5\u30a3\u30eb\u30bf\u30d5\u30a1\u30a4\u30eb sfSuperCacheFilter.class.php \u306e\u4e2d\u3092\u8aad\u3080\u3068\u308f\u304b\u308b\u306e\u3067\u3059\u304c\u3001super cache\u304c\u767a\u52d5\u3059\u308b\u306b\u306f\u3001\u3044\u308d\u3044\u308d\u306a\u8a2d\u5b9a\u304c\u3055\u308c\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u3046\u3057\u306a\u3044\u3068\u3001super cache\u3092\u52d5\u304b\u3057\u3066\u305f\u3064\u3082\u308a\u304c\u666e\u901a\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u898b\u3066\u305f\u308a\u3059\u308b\u3053\u3068\u306b\u3082\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>sf_cache\u304ctrue\/on\u3067\u3042\u308b\u3053\u3068<\/li>\n<li>$_GET\u3084$_POST\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u7121\u3044\u3053\u3068<\/li>\n<li>sf_debug\u304cfalse\u3067\u3042\u308b\u3053\u3068\u3001\u3064\u307e\u308a\u30c7\u30d0\u30c3\u30b0\u30e2\u30fc\u30c9\u3067\u306f\u547c\u3070\u308c\u307e\u305b\u3093<\/li>\n<li>sf_no_script_name\u304ctrue\u3067\u3042\u308b\u3053\u3068<\/li>\n<li>\u30a8\u30e9\u30fc\u30b3\u30fc\u30c9\u304c200(\u6b63\u5e38)\u3067\u3042\u308b\u3053\u3068\u3002\u30a8\u30e9\u30fc\u30da\u30fc\u30b8\u3068\u304b\u3092403\u3067\u8fd4\u3057\u3066\u3044\u308b\u306a\u3089\u3001\u305d\u308c\u306fsuper cache\u306e\u5bfe\u8c61\u5916\u3067\u3059<\/li>\n<li>\u305d\u306emodule\u306edefault cache\u304c enable: on \u3067\u3042\u308b\u3053\u3068<\/li>\n<li>\u305d\u306emodule\/action\u306e cache\u304c enable: on \u3067\u3042\u308b\u3053\u3068<\/li>\n<li>\u305d\u306emodule\/action\u306e with_layout: \u304ctrue\u3067\u3042\u308b\u3053\u3068<\/li>\n<\/ul>\n<p>\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u4f7f\u3046\u3053\u3068\u306b\u306a\u3063\u3066\u308b\u30da\u30fc\u30b8\u3067\u3001\u30da\u30fc\u30b8\u5168\u4f53\u3092\u30ad\u30e3\u30c3\u30b7\u30e5\u3057\u3066\u554f\u984c\u7121\u304f\u3001GET\/POST\u30d1\u30e9\u30e1\u30fc\u30bf\u3082\u6e21\u3063\u3066\u3053\u306a\u3044(\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u9055\u3048\u3070\u666e\u901a\u30da\u30fc\u30b8\u5185\u5bb9\u3082\u5909\u308f\u308a\u307e\u3059\u304b\u3089)\u3068\u3044\u3046\u6761\u4ef6\u3002<\/p>\n<p>\u3053\u308c\u5168\u90e8\u6e80\u305f\u3057\u3066\u3001\u306f\u3058\u3081\u3066super cache\u30d5\u30a3\u30eb\u30bf\u304c\u52b9\u304d\u307e\u3059\u3002<\/p>\n<p>sfSuperCacheFilter::execute()\u306e\u30c1\u30a7\u30c3\u30af\u6587\u3092\u3001\u30c7\u30d0\u30c3\u30ac\u7b49\u3067\u78ba\u8a8d\u3057\u306a\u304c\u3089settings.yml\u3084cache.yml\u306e\u8a2d\u5b9a\u3092\u5909\u3048\u3001(symfony cc\u3082\u3057\u3066\u3001)\u52d5\u304f\u8a2d\u5b9a\u306b\u306a\u3063\u3066\u308b\u3053\u3068\u3092\u78ba\u304b\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h3>super\u30ad\u30e3\u30c3\u30b7\u30e5\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>\u3053\u306e\u72b6\u614b\u3067\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u3064\u304f\u308a\u3001\u9069\u5f53\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>frontend_dev.php\u3068\u304b\u547c\u3093\u3058\u3083\u30c0\u30e1\u3067\u3059\u3088\u3002debug off\u306a\u306e\u3067prod\u3067\u3042\u308b\/ (= index.php)\u3092\u547c\u3073\u307e\u3059\u3002<\/p>\n<blockquote><p>\n<code><br \/>\nweb\/cache\/(\u30a2\u30d7\u30ea\u540d)\/(\u30e2\u30b8\u30e5\u30fc\u30eb\u540d)\/(\u30a2\u30af\u30b7\u30e7\u30f3\u540d).php<br \/>\n<\/code>\n<\/p><\/blockquote>\n<p>\u306a\u3069\u3068\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u6765\u3066\u3044\u305f\u3089\u3001\u307e\u305a\u30d5\u30a3\u30eb\u30bf\u306b\u3088\u308bstatic\u30d5\u30a1\u30a4\u30eb\u751f\u6210\u306f\u5408\u683c\u3067\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001\u3082\u3046\u4e00\u5ea6\u30a2\u30af\u30bb\u30b9\u3057\u305f\u3068\u304d\u306b\u3053\u306e\u751f\u6210\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u958b\u3044\u3066\u308b\u306e\u304b\u3001\u305d\u308c\u3068\u3082symfony\u6a19\u6e96\u306ecache\u304c\u958b\u3044\u3066\u308b\u306e\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001cache\/frontend\/prod\/template\/&#8230; \u4ee5\u4e0b\u306e\u6a19\u6e96\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u3092\u624b\u3067\u6d88\u3057\u3066\u304b\u3089\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u30a2\u30af\u30bb\u30b9\u3057\u3066\u307f\u308b\u3068\u308f\u304b\u308a\u307e\u3059\u3002static\u306a\u30d5\u30a1\u30a4\u30eb\u304c\u547c\u3070\u308c\u3066\u958b\u304b\u308c\u3066\u3044\u308c\u3070\u3001\u6a19\u6e96\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u306f\u4f5c\u3089\u308c\u306a\u3044\u306f\u305a\u3067\u3059\u3002<\/p>\n<h3>super cache\u5b8c\u6210\u304b?<\/h3>\n<p>\u3068\u307e\u3042\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u306e\u306f\u3053\u3053\u307e\u3067\u3067\u3059\u3002\u3057\u304b\u3057\u3001\u751f\u6210\u3055\u308c\u305fstatic\u306a\u30d5\u30a1\u30a4\u30eb\u306f\u62e1\u5f35\u5b50\u304c.php\u306a\u3093\u3067\u3059\u306d\u3002\u305d\u3053\u3067\u305d\u308c\u3089\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u304f\u3068\u3001\u5148\u982d\u306bphp\u306e\u30b3\u30fc\u30c9\u304c\u4e00\u884c\u5165\u3063\u3066\u307e\u3059\u3002<\/p>\n<blockquote><p><code lang=\"php\"><br \/>\n&lt;?php if (time() > 1241771234) { unlink(__FILE__); header('Location: '.$_SERVER['REQUEST_URI']);  exit; } ?><br \/>\n<\/code><\/p><\/blockquote>\n<p>\u3053\u308c\u3067\u3001\u81ea\u8eab\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u5bff\u547d\u3092\u8a08\u308a\u3064\u3064\u3001\u3082\u3057\u5bff\u547d\u304c\u6765\u3066\u3044\u305f\u3089\u81ea\u5206\u81ea\u8eab\u3092\u524a\u9664\u3057\u3066\u3082\u3046\u4e00\u5ea6\u540c\u3058URL\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3001\u3068\u3059\u308b\u3053\u3068\u3067\u3001expire\u306e\u51e6\u7406\u3092\u884c\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>\u3068\u3001\u3044\u3046\u3053\u3068\u306f\u3001\u3053\u306esuper cache\u3001php\u3092\u56de\u907f\u3057\u3066\u306a\u3044\u306e\u3067\u3059\u306d\u3002\u53b3\u5bc6\u306b\u306f super cache\u3068\u8a00\u3048\u306a\u3044\u306e\u3067\u306f\u3068\u601d\u3044\u307e\u3059\u3002\u305f\u3068\u3048\u4e00\u884c\u3068\u306f\u8a00\u3048\u3001php\u30a4\u30f3\u30bf\u30d7\u30ea\u30bf\u3092\u30d5\u30a1\u30a4\u30eb\u6bce\u306b\u8d77\u52d5\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u306f\u3053\u3053\u307e\u3067\u306a\u306e\u3067\u3001PHP\u3092\u5b8c\u5168\u306b\u30b9\u30eb\u30fc\u3059\u308bsuper cache\u306e\u5b9f\u73fe\u306b\u306f\u3001\u3082\u3046\u4e00\u624b\u9593\u304b\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u751f\u6210\u3059\u308b\u306e\u306f.php\u3058\u3083\u306a\u304f.html\u306b\u3057\u3001\u3082\u3061\u308d\u3093\u5148\u982d\u306bphp\u30b3\u30fc\u30c9\u306f\u5165\u308c\u307e\u305b\u3093\u3002.htaccess\u306e\u5b9a\u7fa9\u3082.html\u306b\u5909\u3048\u307e\u3059\u3002<\/p>\n<p>\u305d\u3046\u306a\u308b\u3068\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u306eexpire\u5224\u5b9a\u306f\u81ea\u5206\u3067\u3084\u3089\u305b\u308b\u308f\u3051\u306b\u306f\u884c\u304d\u307e\u305b\u3093\u3002\u5225\u306e\u30c8\u30ea\u30ac\u30fc\u3067\u3053\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u3092\u6d88\u3059\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u3001cron\u3067\u52d5\u304b\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9a\u671f\u7684\u306b\u3053\u306ecache\/\u4ee5\u4e0b\u3092\u898b\u3066\u3001\u30d5\u30a1\u30a4\u30eb\u751f\u6210\u6642\u3092\u898b\u3064\u3064\u53e4\u3059\u304e\u308b\u3082\u306e\u3092\u6d88\u3059\u3001\u304c\u4e00\u6848\u3002<\/p>\n<p>\u3082\u3046\u4e00\u3064\u306f\u3001CacheManager\u3067\u660e\u793a\u7684\u306b\u30ad\u30e3\u30c3\u30b7\u30e5\u3092\u30af\u30ea\u30a2\u3055\u308c\u308b\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001\u3053\u306ecache\/\u4ee5\u4e0b\u306e\u8a72\u5f53\u3059\u308b\u9759\u7684\u30d5\u30a1\u30a4\u30eb\u3082\u524a\u9664\u3059\u308b\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>super cache\u3067\u7528\u610f\u3057\u305fcache\/\u4ee5\u4e0b\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u5148\u982d\u884c\u306ePHP\u3067expire\u3092\u81ea\u5df1\u8a3a\u65ad\u3057\u305f\u969b\u3057\u304b\u6d88\u3048\u306a\u3044\u306e\u3067\u3001\u3069\u306e\u307f\u3061CacheManager\u3067\u306e\u30af\u30ea\u30a2\u3092\u3069\u3046\u3059\u308b\u304b\u3068\u3044\u3046\u306e\u306f\u691c\u8a0e\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u3067\u3059\u306d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>symfony\u3067super cache\u3092\u5b9f\u73fe\u3059\u308bsfSuperCachePlugin\u306e\u3001symfony1.2\u3067\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u3002 super cache\u306f\u3001\u52d5\u7684\u306b\u30da\u30fc\u30b8\u3092\u751f\u6210\u3059\u308bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u304a\u3044\u3066\u3001\u307b\u3068\u3093\u3069\u306e &hellip; <a href=\"https:\/\/akimoto.jp\/blog\/2009\/05\/08\/use-sfsupercacheplugin-on-symfony12\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">symfony1.2\u3067sfSuperCachePlugin\u3092\u4f7f\u3046<\/span><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[472],"tags":[866,865,131,864,754,744,218,213],"class_list":["post-1259","post","type-post","status-publish","format-standard","hentry","category-symfony-php","tag-sfsupercacheplugin","tag-super-cache","tag-symfony","tag-symfony12","tag-754","tag-744","tag-218","tag-213"],"_links":{"self":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/1259","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/comments?post=1259"}],"version-history":[{"count":12,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/1259\/revisions"}],"predecessor-version":[{"id":1270,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/1259\/revisions\/1270"}],"wp:attachment":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/media?parent=1259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/categories?post=1259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/tags?post=1259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}