play.idevgames.co.uk
   230 GAMES
   498 MEMBERS
   19 TUTORIALS
   73 DEV LOGS
Forgot your password? Click here
Back

My-Ga.me Is Now Fast!


Posted: 2018-07-31 18:39:30 |    Posted by iDev |    idevgames.co.uk


2
Login to like

I know it's only been a few days since my last update of patch notes, new search and improved statistics though it actually got me looking back at another issue. Back in march i spoke about some improvements to performance that I had made. It also explains a lot about the the issue with My-Ga.me. As I mentioned I had to look back into it. Unfortunately I made things worse to the point of nearly bringing down the entire server, my bad. Which after solving that problem I didn't look back into it as I didn't dare to touch any more cakePHP config files.

As I said, I did start to look back into it yesterday and actually "fingers crossed" figured the issue out. Unlike sometimes when you accidentally fix things and you might not even know why, this time it actually makes sense and no problems for almost 24 hours so i'm hoping this is actually fixed.

I knew before looking into it that the server CPU and Memory usage would spike every few minutes even though the site wasn't being used. Which indicates that something big was happening in the background and this was causing the slow downs. So after reading something about setting when cache is refreshed I looked for where I could set it and found it. What I then noticed is that the cache time was only set when the site was in debug mode. So I searched to find where it was set while not in debug mode and couldn't find anything. So I added it and it worked! So what I think was happening is that as soon as the cache was being rebuilt, the site would then initiate the next cache build straight afterwards. Which is why it would be quick for a minute or so and then slow for 10 minutes, even getting to the point of maxing out resources.

I know after the updates a few days ago that this might not even seem worth mentioning but I think this will make a lot of difference, I think we will start to see a lot more ad views which is good for developers and advertisers. Though for gamers it will make all the difference! Also I have spent countless hours looking into this so it's a relief to see the time spent finally pay off.

Thanks,

-iDev

Would you like to comment on this post? Create an account in less then 1 minute. Click here

1
Login to like
AMGaming Commented:

This was a great update! Thanks so much!

Back to top