{"id":1068,"date":"2009-03-18T23:08:42","date_gmt":"2009-03-18T14:08:42","guid":{"rendered":"http:\/\/akimoto.jp\/blog\/?p=1068"},"modified":"2009-03-18T23:27:32","modified_gmt":"2009-03-18T14:27:32","slug":"when-symfony-cache-manager-becomes-null","status":"publish","type":"post","link":"https:\/\/akimoto.jp\/blog\/2009\/03\/18\/when-symfony-cache-manager-becomes-null\/","title":{"rendered":"symfony\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304c\u53d6\u308c\u306a\u3044\u3068\u304d"},"content":{"rendered":"<p>symfony\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u3044\u3066\u3044\u308b\u30da\u30fc\u30b8\u3092\u5f37\u5236\u7684\u306b\u30af\u30ea\u30a2\u3057\u305f\u3044\u3068\u304d\u3001<\/p>\n<pre lang=\"php\">\r\n  $cacheManager = $this->getContext()->getViewCacheManager();\r\n  $cacheManager->remove('quiz\/index?id='.$quizIdToRemove);\r\n<\/pre>\n<p>\u3068\u304b\u3084\u3063\u3066\u305f\u306e\u3067\u3059\u304c\u3001\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3067\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre lang=\"php\">\r\nFatal error: Call to a member function set() on a non-object in ...\r\n<\/pre>\n<p>\u5b9f\u74b0\u5883\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u3044\u306e\u3067\u3046\u3093\u3046\u3093\u60a9\u3093\u3067\u8abf\u3079\u3066\u307f\u305f\u3089\u3001\u30c7\u30d0\u30c3\u30b0\u74b0\u5883\u3067\u306fcache: off \u306b\u3057\u3066\u307e\u3057\u305f\u3002getViewCacheManager()\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u4f7f\u3063\u3066\u306a\u3051\u308c\u3070null\u3092\u8fd4\u3059\u3088\u3046\u3067\u3059\u3002<\/p>\n<p># \u8003\u3048\u3066\u307f\u305f\u3089\u5f53\u305f\u308a\u307e\u3048\u304b<\/p>\n<p>\u554f\u984c\u306f\u3001\u3053\u308c\u304cfatal error\u3067\u6b62\u307e\u3063\u3066\u3044\u305f\u305f\u3081\u306b\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3057\u3066\u3044\u306a\u304b\u3063\u305f\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>cacheManager\u3092\u53d6\u5f97\u3057\u305f\u3068\u304d\u306f\u3001\u5fc5\u305anull\u30c1\u30a7\u30c3\u30af\u3057\u3066\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u4f7f\u308f\u308c\u3066\u308b\u3068\u304d\u3060\u3051\u547c\u3073\u51fa\u3057\u307e\u3057\u3087\u3046\u3002 > \u81ea\u5206<\/p>\n","protected":false},"excerpt":{"rendered":"<p>symfony\u3067\u3001\u30ad\u30e3\u30c3\u30b7\u30e5\u304c\u52b9\u3044\u3066\u3044\u308b\u30da\u30fc\u30b8\u3092\u5f37\u5236\u7684\u306b\u30af\u30ea\u30a2\u3057\u305f\u3044\u3068\u304d\u3001 $cacheManager = $this->getContext()->getViewCacheManager(); $cacheManage &hellip; <a href=\"https:\/\/akimoto.jp\/blog\/2009\/03\/18\/when-symfony-cache-manager-becomes-null\/\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">symfony\u306e\u30ad\u30e3\u30c3\u30b7\u30e5\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u304c\u53d6\u308c\u306a\u3044\u3068\u304d<\/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":[132,754],"class_list":["post-1068","post","type-post","status-publish","format-standard","hentry","category-symfony-php","tag-132","tag-754"],"_links":{"self":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/1068","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=1068"}],"version-history":[{"count":4,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/1068\/revisions"}],"predecessor-version":[{"id":1072,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/posts\/1068\/revisions\/1072"}],"wp:attachment":[{"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/media?parent=1068"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/categories?post=1068"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akimoto.jp\/blog\/wp-json\/wp\/v2\/tags?post=1068"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}