First visit of a new page raises error? Works after refresh #883
-
Hi! Each time I create some new-page.html.md on the first visit I get a white page with this text:
repeated 6 times and
repeated twice. How should I figure out what might be wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry for the delay in getting back to you. Been busy working on Joomlatools Server. This is a little racing condition, that only happens during development. Pages uses an internal pages cache, it validates the cache but in some cases this doesn't reflect changes fast enough. For example I get the issue when running in Docker setup, since file changes are not synced fast enough with the host. When doing development work, it's best to always enable debug mode in Joomla. This turns off caching optimisations. There is also a config option for this called The page registry cache is turned off with debug is enabled: .../code/page/registry.php#L45 Hope that helps. |
Beta Was this translation helpful? Give feedback.
Sorry for the delay in getting back to you. Been busy working on Joomlatools Server.
This is a little racing condition, that only happens during development. Pages uses an internal pages cache, it validates the cache but in some cases this doesn't reflect changes fast enough. For example I get the issue when running in Docker setup, since file changes are not synced fast enough with the host.
When doing development work, it's best to always enable debug mode in Joomla. This turns off caching optimisations. There is also a config option for this called
debug
, see: .../code/config/config.php#L29The page registry cache is turned off with debug is enabled: .../code/page/registry.php#L45
Hope…