I previously used cloudflare with siteground and things worked smoothly.
I changed my hosting to a one click digital ocean droplet vps and things went to ■■■■.
So I removed cloudflare and focused on setting up digital ocean only. Right now everything is back to normal.
Some details about my site, I installed an ssl certificate with Let’sEncrypt and the droplet is Ubuntu based with an Apache server.
If anybody has experience on integrating cloudflare properly with digital ocean it would be appreciated. I believe the issue previously was probably with SSL.