Skip to content

First visit of a new page raises error? Works after refresh #883

Answered by johanjanssens
HiRolla asked this question in Q&A
Discussion options

You must be logged in to vote

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#L29

The page registry cache is turned off with debug is enabled: .../code/page/registry.php#L45

Hope…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johanjanssens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants