Have you ever experienced such problem in WordPress when trying to do a new post or doing other task :
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 8192 bytes) in /home/xxx/wp-includes/cache.php on line 363
I faced this problem for quite some times. Had searched for the solution and none of them helped. Most of them suggests to increase the default memory limit. Had tried to do it by following this post : Fix: WordPress Memory Exhausted Error – Increase PHP Memory but still it didn’t solve the problem.
Until I read one of the comment saying :
Just remember that if the problem is a memory leak (either in PHP itself or in some library that is used by a plugin), this will merely delay the occurence.
This gave me an idea to try deactivate the plugins one by one to see if it helps solve the problem. And voila… the problem solved after deactivating the Google XML Sitemaps plugin. After a long time searched and going through some hassles, the solution was only as simple as that.
So if you face the same problem, try to deactivate the plugins first. If it doesn’t help, try to increase your memory limit by following the guide from the link above. If you still get the error after that, then I suggest you contact your hosting provider and ask for their help.