Open cmcandrew opened 1 year ago
This was supposedly fixed in 2.9.13 and it is so on my sites.
https://podswp.slack.com/archives/C02SWND14/p1678886519053069
I wonder what might still be going wrong on yours?
v2.9.11.1 - Should a cache flush be initiated just by navigating to Edit Pod; wp-admin/admin.php?page=pods&action=edit&id=5 - no saving being done but cache is flushed
[2023-03-30T13:35:22+00:00] 6425901ac598b - site-id: 23 - cache flushed (site: 23, backtrace: array ( 0 => array ( 'file' => '/var/www/html/wp-content/plugins/pods/classes/PodsView.php', 'line' => 474, 'function' => 'wp_cache_flush', ), 1 => array ( 'file' => '/var/www/html/wp-content/plugins/pods/includes/general.php', 'line' => 2378, 'function' => 'clear', 'class' => 'PodsView', 'type' => '::', ), 2 => array ( 'file' => '/var/www/html/wp-content/plugins/pods/includes/general.php', 'line' => 2429, 'function' => 'pods_view_clear', ), 3 => array ( 'file' => '/var/www/html/wp-content/plugins/pods/classes/PodsAPI.php', 'line' => 10915, 'function' => 'pods_cache_clear', ), 4 => array ( 'file' => '/var/www/html/wp-content/plugins/pods/classes/PodsAPI.php', 'line' => 2457, 'function' => 'cache_flush_pods', 'class' => 'PodsAPI', 'type' => '->', ), ))
Any updates for this?
Hi @cmcandrew In reply to your last comment, is the current issue that Pods flushed its cache when you go to the edit page? If so, I don't feel like this is a bug but a measure to make sure you have the correct data when editing.
@JoryHogeveen: If you're wiping the entire cache just to get the latest post, that's an antipattern and will hurt the performance of the entire site. Use clean_post_cache()
instead.
Pods currently flushes various caches in these scenarios:
I'm not seeing a case where it would run on every page load so there may be something else going on here that we'll want to look into.
We could also look into more specific deletes from cache based on keys we know need to be handled but this gets complicated across page loads given the dynamic nature of some of the queries cached and how they are keyed.
Description
Upon deployment of either 2.9.12.2 and 2.9.13 the cache is flushed continually and causes an outage across all webservers
Version
2.9.13
Testing Instructions
Pods installation on version 2.9.11.1 updating to both 2.9.12.2 and 2.9.13.
Screenshots / Screencast
Possible Workaround
Site Health Information
Pods Package
No response