BUG: Outdated plugin cache transients waste database storage
-
First of all, thanks for the great plugin — it tremendously enhances readability of long texts!
Affected plugin version: 5.11.0
Description: The plugin stores its cache as transient in the
wp_options
database table. Unfortunately, over time the list of transients is growing as outdated ones are not cleared. I have just removed 200M+ of outdated_php_hyphenator_cache
transients. Especially for large pages with many text content this results in multiple problems:a) all
_transient_typo_<unixtimestamp>_php_hyphenator_cache
transients are marked as “autoload”, but only the one with the highest<unixtimestamp>
might require to be marked autoload,b) outdated transients are consuming a significant amount of database storage, although they appear to be not used by the plugin
c) transients tend to slow down php processing (due to autoload) and increase memory footprint of the php process, which might be a bottleneck for virtual servers.
Possible solutions: After updating the cache, ensure in your own abstraction of the WP transient classes to remove all older transients of the plugin. Alternatively, you might want to consider creating a WP cronjob, which deletes outdated transient objects of the plugin once a day.
Many thanks for your support!
- You must be logged in to reply to this topic.