2019-08-23 at 11:10 PM UTC
PM me if so.
This shit can be godawful.
This is worth crypto-shekels to me.
If you don't know what vcl is don't bother.
2019-08-25 at 3:18 PM UTC
Varnish Configuration Language?
2019-08-25 at 3:25 PM UTC
The following users say it would be alright if the author of this
post didn't die in a fire!
2019-08-30 at 9:11 PM UTC
OK got the vcl down. And I had to install nginx as a reverse proxy anyway to do https, so much of my time was wasted, but it's nice to get paid for learning a new skill.
So the site is now fast as heck, and the cache refreshes itself every time a page is accessed (while serving from cache, so the end user is oblivious to the slow backend).
Really happy with how the project turned out. It did take the best part of a month though.
Next job is to hit the atrocious frontend. Oy vey.
2019-09-16 at 9:38 PM UTC
Site went live today. I was petrified, but everything worked out better than expected - even the SSL. Not even a second downtime.
2019-09-17 at 11:48 PM UTC
aldra
JIDF Controlled Opposition
looks like I'm getting into this because the web dev guy doesn't know anything about it and the contractors they hired are... limited
I'd doubt Varnish would help in this circumstance (resources are limited enough as it is) but setting up Redis now
2019-09-18 at 4:01 AM UTC
aldra
JIDF Controlled Opposition
the main thing is they have Magento set up on shared servers that already have contested resources and are too cheap to create dedicated instances. I've been trying to talk these guys into moving hosting to Azure or AWS for a number of reasons but again, too cheap. Even though in a lot of circumstances the price would be less than what we're currently paying for dedicated servers.
I managed to speed things up significantly by using Redis and fine-tuning MySQL's Qcache, as well as adding a generic robots.txt file because there wasn't one already for some reason and the site was serving roughly 2x as much data to crawlers as to actual users. Qcache has been deprecated in the latest versions of MySQL though apparently because people often don't configure it properly and end up overloading the CPU. I'd like to move to PostGre but fuck taking responsibility for a project like that.
2019-09-18 at 12:30 PM UTC
I couldn't get redis working with the awful cms we use, and nothing I did with the dB (mariadb) made any difference whatsoever.