A call to uuid() causes a write on a virtual page

In Kirby v3.8 a call to a virtual page’s uuid() method causes the page to be saved. If this is a database or an API this can cause unexpected results. This happens when a virtual page is accessed in the panel. First, I think this behaviour should be documented as it is kind of unexpected and second, what is the best way to deal with this? Is there a way to disable uuids for specific templates or when extending the Page model?

3 Likes