Fatal error : Allowed memory size of x bytes exhausted

I am on CS-cart V 3.0.2. I am frequently getting the below errors when I browse the site and the admin.



Fatal error: Allowed memory size of 50331648 bytes exhausted (tried to allocate 4541804 bytes) in /home/gadgetsh/public_html/core/classes/cache_backend/file.php on line 95



“Error Oops, something went wrong (parsererror). Please try again.”



What could be the issue?

Contact your webhost.

Thanks. On a side note, I am on shared hosting. Is there anything that any shared hosting webhost would tweak for me? Like the memory limit etc.

@jain1980

change on [color=#ff0000]config.local.php[/color]

[color=#ff0000]@ini_set('memory_limit', '48M');[/color]

to

[color=#008000]@ini_set('memory_limit', '128M');[/color]