legacy-knowledge-base
公開されました Jun. 30, 2025

Fragmentを「キャッシュ可能」として使用する際のページリダイレクトの問題

written-by

Anishq Sharma

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ユーザーは、「キャッシュ可能」なフラグメントで何らかのアクションを実行している間、ページの自動リダイレクトに直面する。
  • キャッシュ可能」オプションをオフにすると、この問題は解決する。

環境

  • Liferay DXP 7.3
  • Liferay DXP 7.4

解像度

  • このような問題は liferay_portlet["runtime"]
  • @liferay_portlet["runtime"] タグを含むフラグメントに cacheable を設定することは推奨されません。なぜなら、ページをロードするたびにこのタグの内容を変更する必要があり、キャッシュ可能であることは矛盾しているからです。
  • @liferay_portlet["runtime"]タグを使用している間は、フラグメントを'cacheable'に設定しないことを推奨します。
did-this-article-resolve-your-issue

legacy-knowledge-base