Details

      Description

      AS pointed out by review by Sensio, current code will lead to new cache generated every time the content returned from legacy is different.
      The code causing the issue:

      # eZ\Publish\Core\MVC\Legacy\View\TwigContentViewLayoutDecorator
      $twigContentTemplate = <<<EOT
      {% extends "{$layout}" %}
      {% block {$options['contentBlockName']} %} {$contentViewClosure( $params )}
      {% endblock %}
      EOT;
      

      Two solutions are available:

      • Having a physical template and use it directly.
      • Changing the template above to display the content as a twig variable:

        $twigContentTemplate = <<<EOT
        {% extends "{$layout}" %}
        {% block {$options['contentBlockName']} %}
        {{ content|raw }}
        {% endblock %}
        EOT;
        

        Activity

        Show
        Damien Pobel (Inactive) added a comment - Fixed in ezp-next: master: http://github.com/ezsystems/ezp-next/commit/69ee48881760aad62cff8c1cd50ce56d69f38b5d

          People

          • Assignee:
            Unassigned
            Reporter:
            André Rømcke
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 1 hour, 30 minutes
              1h 30m