This time the changes happened mostly under the hood. I fixed several bugs and optimized how page visits are saved to the DB. My DB suffered from one flaw: I used a method for saving to the DB, but forgot to use the method for saving to the DB at a specific index instead (even though that column was not AUTO_INCREMENT), and related to that, I also forgot to pass the ID of the page. Another change under the hood is that visits to all pages will no longer be saved to the DB, only visits to those where I specify it by setting a variable to true.
I will always have to set this variable, because it is set in the constructor, so I will always have to decide whether I want the page to be saved to the DB or not. And since in the constructor I don’t always know 100% whether I want to save the page to the DB, there is the option to choose false in the ctor and then, once the details become clearer, perform the write afterwards. The big visible change is a minor redesign 👻 This link retired before it was even eligible for a pension., judge for yourself:
Previous design:
New design:
It may not be very visible in the picture, but there really is a gradient transition there. Related to the first change I mentioned at the beginning, I will now be able to easily find out the number of visits by registered users to any saved page, as you can see for example on 👻 This link is now just a memory, just as the name of the blog suggests..
I haven’t added this feature anywhere else yet, even though it is absolutely easy: I just define a div and fill it using a single method, to which I pass the current Page. Because of the mess caused by those bugs, I also had to write a lot of code to clean up this data.

