
I setup Laravel with Redis and made sure all my articles were cached, and still saw a lot of database traffic.
All the route bound parameters get magically injected - but of course behind the scenes these are looked up in the database.
Although these are simple queries that run pretty fast - a lof of them are repeated very frequently so can be efficiently cached.
Read more ...In the world of Web development the words “Best Practice” are often thrown about as if implementation was a trivial detail and giving the impression that everyone else must be doing all this already.
Then you implement these and find that it isn’t so trivial - especially when you try and combine each practice.
I wanted to experiment with making this site into a Progressive Web App (PWA) while maintaining good security through Content Security Policy (CSP) headers and long cache times for static assets.

Read more ...