Security update for Core, with self-updated composer
[yaffs-website] / web / core / lib / Drupal / Core / Render / PlaceholderingRenderCache.php
index 42562834b838a5b25a586cef029b94b63f60cf01..0422ecf5eb52a127c342e6eba11f49a3ddcbf92b 100644 (file)
@@ -93,7 +93,7 @@ class PlaceholderingRenderCache extends RenderCache {
    */
   public function get(array $elements) {
     // @todo remove this check when https://www.drupal.org/node/2367555 lands.
-    if (!$this->requestStack->getCurrentRequest()->isMethodSafe()) {
+    if (!$this->requestStack->getCurrentRequest()->isMethodCacheable()) {
       return FALSE;
     }
 
@@ -127,7 +127,7 @@ class PlaceholderingRenderCache extends RenderCache {
     $result = parent::set($elements, $pre_bubbling_elements);
 
     // @todo remove this check when https://www.drupal.org/node/2367555 lands.
-    if (!$this->requestStack->getCurrentRequest()->isMethodSafe()) {
+    if (!$this->requestStack->getCurrentRequest()->isMethodCacheable()) {
       return FALSE;
     }