Memories Cached

The problem of attaching your ego to Google Analytics and other metrics is that at any moment or month the opaque workings of tech giants can flip on you and ruin your mood.

Maybe my Android phone is always listening to me, because it feels like every time I warn someone that building successful websites is completely dependent on Google algorithms, those algorithms then result in bad news.

After solid and then incredible growth last year, autumn has seen falling visitors, revenue and search rankings for a site that I've only been enhancing.

Maybe it's because I disabled the obnoxious auto ads that Google is punishing me.

The only other issue I can see is that my LCP timing for mobile is averaging 5 seconds.

To try and address the latter, I spent the weekend optimising the front end and back end to try and increase the speeds. I didn't learn a lot about React, because I got AI to refactor that with some lazy and suspense commands.

Memcached is cool, because it's triggered by a visit to a resource, and then it stays in memory of a little while, making it faster and easier to recall again.

It made me realise that a lot of my memories of life are about things I journaled about, or took a photo of, and are therefore cached. Unlike MySQL, human memories deteriorate over time and you can't export them, so using forms of cache is super helpful for tethering your existence to reality like a trail of breadcrumbs through space time.

Here's some things I want to cache from this exercise:


  • Turning on compression in CPanel really helped the speed and download size
  • Pre-Caching a bunch of stuff by making fetch requests to the controller instead of just loading the content through a SQL query is inefficient, but saved me a lot of development time.
  • I probably should have learnt a server-side rendered framework first instead of using React with a PHP back end. Oh well.
  • After doing all the work on the weekend, I realised on Tuesday that I could actually radically improve performance by reducing a chain of dependent API calls and instead do a location lookup inside the event look up. Fuck me for trying to implement a RESTful architecture, right?
  • I do so much IT during my work times, and yet I spent a sunny autumn Sunday implementing memcached. However, the same amount of time could have been used to watch a couple of football games and a movie. I didn't do that, I rarely do that anymore. I just enjoy solving problems with technology. And I really want to beat Google at their ruin-my-mood challenge.
  • Breath of the Wild doesn't hold your hand much. Either that or I'm missing some tutorial somewhere. So when I did take a short break and played it, I had an amazing ah-hah moment when I realised that I could knock down trees with bombs and use the fallen trunk to cross a chasm and reach a shrine. As gaming goes, it was a really rewarding experience and much better than the adrenaline filled checklist ticking exercise that AoE2 build order into resign was back when that was my game of choice. It also has dynamic time of day and when I knocked the tree down it was sunset and so quite a picturesque moment of triumph. I am caching that memory for sure.

Comments

Add Comment
Toggle Comments Form
Promoted Entry: Five Lessons from Speculate 18

Too much for me summarise in a review. Instead, I thought I'd share a single takeaway and challenge from each of the sessions.

Promoted Entry: Chasing Waterfalls and Sunset Cows

While taking a holiday was supposed to be an escape from much of life's routines, I was not expecting to abstain from eating almonds for over a week. Finally this weekend I have resumed my almond and apple morning teas in the presences of some grand waterfalls in Springbrook and Lamington National Parks.

Previous Entry: Just Like Old Times

I went to a concert tonight to see an old (relative) man sing old songs for me, who is also becoming an old man. I brought ear plugs and wore comfortable shoes.


Not getting enough emails? Want to receive updates and publishing news in your inbox? Sign up to the bradism mailing list. You'll also receive an ebook, free!