Every once in a while my Magento website shows a blank page. No errors, not anything: just a white page. When this occurs, the fix is to clear my caches. After that the website works again for a month or so and after that the same problem occurs.
Any ideas on how to cure this?
Most of the time this problem occur by cache memory full. At the beginning, I manually remove the files in home/var/cache/ after that the site is working perfectly. But this is not a good approach.
This is the way Now I found. (make a Cron job to clear automatically) add a bash script in root folder Magento with this code.
replace /root/your site path with your site var/cache folder path.
And add a Cron job in Cpanel. like every 12hours like:
Thanks. Happy code. I already mention this on my blog, I update this with new method too. please visit for more about it Magento blank page Error