<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nmtysh</author_name>
  <author_url>https://blog.hatena.ne.jp/nmtysh/</author_url>
  <blog_title>nmtysh.log</blog_title>
  <blog_url>https://nmtysh.hatenablog.com/</blog_url>
  <categories>
    <anon>CakePHP</anon>
    <anon>PHP</anon>
    <anon>プログラミング</anon>
  </categories>
  <description>CakePHPでViewのElementでキャッシュが利用できます。 利用できますが、キャッシュ生成処理の処理上、入れ子になったElementで親と子の両方でCacheを使うとCacheがおかしくなります。 親のElement(ここではAとします)で、Elementの処理時にCacheのconfigを生成するのですが、render時に子のElement(ここではB)の処理時にAのCacheConfigが上書きされます。 そのため、Aのrender後、Cacheに書き込みますが、書き込み先がBのElementのキャッシュとなり、Aのキャッシュは生成されません。 次回(キャッシュの期限が有効の場合…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnmtysh.hatenablog.com%2Fentry%2F2016%2F03%2F15%2F233409&quot; title=&quot;CakePHP 2.xのElementのCacheは入れ子にできない - nmtysh.log&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-15 23:34:09</published>
  <title>CakePHP 2.xのElementのCacheは入れ子にできない</title>
  <type>rich</type>
  <url>https://nmtysh.hatenablog.com/entry/2016/03/15/233409</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
