Title: W3TC database cache causes memory error
Last modified: August 14, 2024

---

# W3TC database cache causes memory error

 *  Resolved [linkedmedia](https://wordpress.org/support/users/linkedmedia/)
 * (@linkedmedia)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/)
 * I started getting 503 errors due to memory usage. I’ve narrowed it down to something
   in the database cache. Everything else is caching fine. I’ve unistalled, cleaned
   up the files on the server and reset the htaccess file- removing any and all 
   mentions of w3TC before reinstalling, and the issue still persists.
 * We’re on GoDaddy, using the latest version of Divi Theme and WP 6.6.1 and php
   8. Heres an example of the errors from the log: _[12-Aug-2024 16:37:18 UTC] PHP
   Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate
   262144 bytes) in /home/vguijstpnlix/public\_html/wp-content/plugins/w3-total-
   cache/Config.php on line 136 [12-Aug-2024 16:37:23 UTC] PHP Fatal error: Allowed
   memory size of 268435456 bytes exhausted (tried to allocate 20480 bytes) in /
   home/vguijstpnlix/public\_html/wp-includes/class-wpdb.php on line 2425_
 * The error differs every time. It’s different scripts which I’m guessing means
   that just happens to be the script running when the memory ran out. The only 
   changes to our site recently was the creation of a custom 404 page in Divi, which
   I then deleted thinking it may have caused the issue. And we installed WP File
   Manager plugin which we have since deleted in case it was the culprit. No change
   in the errors.
 * We currently have w3TC running with Database caching off. Any help would be appreciated.
   Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fw3tc-database-cache-causes-memory-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/#post-17953173)
 * Hello [@linkedmedia](https://wordpress.org/support/users/linkedmedia/)
 * Thank you for reaching out and I am happy to help!
   It seems like the max memory
   limit is set to 256 MB and it’s currently not enough for your setup. I would 
   suggest in this case to increase the memory limit to 512MB and you can check 
   how to do this in[ this article under the MAX MEMORY](https://www.boldgrid.com/support/troubleshooting/how-to-change-php-settings/)
   section of the article.Please let me know if this helps!
 * Thanks!
 *  Thread Starter [linkedmedia](https://wordpress.org/support/users/linkedmedia/)
 * (@linkedmedia)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/#post-17953201)
 * That’s one of the first things I did. It hasn’t helped unfortunately.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/#post-17953367)
 * Hello [@linkedmedia](https://wordpress.org/support/users/linkedmedia/)
 * Thank you for your feedback.
 * Can you please share if _Allowed memory size_ is changed now and can you please
   share the error?
   Also, please let me know which caching method you are using 
   for DB Caching?Thanks!
 *  Thread Starter [linkedmedia](https://wordpress.org/support/users/linkedmedia/)
 * (@linkedmedia)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/#post-17954955)
 * Hi Marko, It looks like the htaccess file and the wp-config file increased the
   MAX memory but not the allowed memory. I’ve gone in and fixed that and the issues
   seems to have cleared up. Thanks for the help!
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/#post-17955124)
 * Hello [@linkedmedia](https://wordpress.org/support/users/linkedmedia/)
 * You are most welcome!
 * We would really appreciate it if you could take a minute and post a review [here](https://wordpress.org/support/plugin/w3-total-cache/reviews/).
   This will help us to continue offering a top-notch product to users.
   Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘W3TC database cache causes memory error’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [1 year, 9 months ago](https://wordpress.org/support/topic/w3tc-database-cache-causes-memory-error/#post-17955124)
 * Status: resolved