Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291324

cache_form never cleared because variable_set("cache_flush_cache_form") would never be set - cache_form table becomes huge

$
0
0

As per title, the form retrieved in cache_get would never invoke db_query("DELETE FROM {cache_form} WHERE expire != CACHE_PERMANENT and EXPIRE < time()", ) because cache_flush_cache_form will always be 0, manually setting this to a value would only invoke the cache cleaning once.
I propose adding variable_set("cache_flush_cache_form") to form_cache_get, expiry is already set to a long TTL, so this should be safe to clear the cache, instead of using a cron to regularly truncate the table


Viewing all articles
Browse latest Browse all 291324

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>