bnomei / kirby3-boost

Boost the speed of Kirby by having content files of pages cached and a fast lookup based on uuids
https://sakila-with-boost.bnomei.com/
MIT License
51 stars 0 forks source link

Migration from Boost v1 -> v2 and kirby v3.7 -> kirby v3.8 #15

Open psntr opened 2 years ago

psntr commented 2 years ago

Hello,

I was wondering if there is a specific steps to take in order to update the plugin in accordance with the latest Kirby release (+3.8.0), specifically related to the use of UUID, from my understanding, we don't need to provide the field:

boostid:
    type: boostid

on the page we want to use boostID with? There seems to have few changes I wonder if the changes might break current website if I blindly update Boost and Kirby?

Changes I meant are for the page models: use \Bnomei\PageHasBoost; to use \Bnomei\ModelHasBoost; or the ->fromBoostIDs() to ->toPagesBoosted()

Any recommendations would be appreciated. Thank you!

bnomei commented 2 years ago

Thanks for asking. You pointed out most steps needed. This is what i would do but i have not tested it myself.

psntr commented 2 years ago

Thank you for the clarifications. I will try that locally and let you know if that works. In the meantime, I'm trying to interact with the new collections files you added, but by using the example here, I have this error:

array_values(): Argument #1 ($array) must be of type array, Kirby\Cms\Pages given in line 30. Does that happen on your side too?

psntr commented 1 year ago

Finally had time to try to update one website. I can tell that it works as expected also the related fields worked. But I ran into few troubles when I had to rename the fields. So make sure to have backups.