Memory leak in transients
-
Hi @rockfire, thanks for adding support for JSON-LD data. This change is very useful but it has a memory leak. It looks like you are setting transients without an expiry date. Please note that transients without an expiration time are autoloaded. With JSON-LD data support the size of each transient become 2-3 MB increasing autoloaded options size to 200-300 MB for a 100 post website.
This needs to be fixed immediately. I’m happy to submit a PR but I could not find the plugin’s repository on github and I’m not familiar with SVN.
NB: transients that never expire are autoloaded, whereas transients with an expiration time are not autoloaded. Consider this when adding transients that may not be needed on every page, and thus do not need to be autoloaded, impacting page performance.
https://codex.www.ads-software.com/Function_Reference/set_transient#Notes
- The topic ‘Memory leak in transients’ is closed to new replies.