An unknown action of your plugin purges my cache several times a day
-
Hello everyone !
I use ACF and Frontend Admin Pro (Premium).
I use your Frontend Admin Pro plugin so that my users can create products that are automatically linked to their account, from the frontend (my site is a marketplace).
However, I am encountering problems that I cannot resolve.
I use W3 Total Cache to cache my pages for visitors (non-logged-in users).
Several times a day my cache gets purged for no reason.
With the Pro version of W3 Total Cache I have access to the purge log. I noticed that several actions are triggered several times a day. Here’s an excerpt of what causes the purge:?
Date Tue, 12 Sep 2023 10:03:42 +0000 Action flush_post(53898) User Stack Trace #0 wp-includes/class-wp-hook.php(312) W3TC\PgCache_Plugin--w3tc_flush_post (53898, null) #1 wp-content/plugins/w3-total-cache/CacheFlush_Locally.php(160) do_action ("w3tc_flush_post", 53898, null, null) #2 wp-content/plugins/w3-total-cache/Util_AttachToActions.php(116) W3TC\CacheFlush--flush_post (53898) #3 wp-includes/class-wp-hook.php(312) W3TC\Util_AttachToActions--on_post_change (53898, {"ID":53898,"post_author":"0","post_date":"2023-09-12 12:03:42","post_date_gmt":"2023-09-12 10:03:..) #4 wp-includes/post.php(4751) do_action ("save_post", 53898, {"ID":53898,"post_author":"0","post_date":"2023-09-12 12:03:42","post_date_gmt":"2023-09-12 10:03:.., false) #5 wp-content/plugins/advanced-custom-fields/includes/acf-field-functions.php(1033) wp_insert_post ({"post_author":0,"post_content":"a:16:{s:4:\\\"type\\\";s:13:\\\"product_price\\\";s:12:\\\"instru..) #6 wp-content/plugins/acf-frontend-form-element-pro/main/frontend/forms/classes/form-display.php(662) acf_update_field ({"ID":0,"key":"field_67d87fd2eebffa","label":"Prix","name":"fea_product_price","prefix":"","type":..) #7 wp-content/plugins/acf-frontend-form-element-pro/main/frontend/forms/classes/form-display.php(1180) Frontend_Admin\Classes\Display_Form--render_fields ([{"label":"Titre du document","wrapper":{"class":" elementor-repeater-item-d6d8d21","id":"","width.., {"id":"elementor_67d87fd","ID":894,"parent_form":"","main_action":"","custom_fields_save":"product.., true) #8 wp-content/plugins/acf-frontend-form-element-pro/main/elementor/widgets/general/frontend-form.php(736) Frontend_Admin\Classes\Display_Form--render_form ({"id":"elementor_67d87fd","ID":894,"parent_form":"","main_action":"","custom_fields_save":"product..) #9 wp-content/plugins/elementor/includes/base/controls-stack.php(2223) Frontend_Admin\Elementor\Widgets\Frontend_Form--render () #10 wp-content/plugins/elementor/includes/base/widget-base.php(609) Elementor\Controls_Stack--render_by_mode () #11 wp-content/plugins/elementor/includes/base/widget-base.php(750) Elementor\Widget_Base--render_content () #12 wp-content/plugins/elementor/includes/base/element-base.php(447) Elementor\Widget_Base--print_content () #13 wp-content/plugins/elementor/includes/base/element-base.php(787) Elementor\Element_Base--print_element () #14 wp-content/plugins/elementor/includes/base/element-base.php(447) Elementor\Element_Base--print_content () #15 wp-content/plugins/elementor/includes/base/element-base.php(787) Elementor\Element_Base--print_element () #16 wp-content/plugins/elementor/includes/base/element-base.php(447) Elementor\Element_Base--print_content () #17 wp-content/plugins/elementor/core/base/document.php(1635) Elementor\Element_Base--print_element () #18 wp-content/plugins/elementor/core/base/document.php(1086) Elementor\Core\Base\Document--print_elements ([{"id":"7f8cb88","elType":"section","settings":{"layout":"full_width","content_width":{"unit":"px"..) #19 wp-content/plugins/elementor/includes/frontend.php(1092) Elementor\Core\Base\Document--print_elements_with_wrapper ([{"id":"7f8cb88","elType":"section","settings":{"layout":"full_width","content_width":{"unit":"px"..) #20 wp-content/plugins/elementor/includes/frontend.php(1006) Elementor\Frontend--get_builder_content (894) #21 wp-includes/class-wp-hook.php(310) Elementor\Frontend--apply_builder_in_content (".h1.Vendre un Document./h1.\n.h1.Vendre un Document./h1.\n.ul.\n \t.li data-tab=\"\".Je dépose m..) #22 wp-includes/post-template.php(256) apply_filters ("the_content", ".h1.Vendre un Document./h1.\n.h1.Vendre un Document./h1.\n.ul.\n \t.li data-tab=\"\".Je dépose m..) #23 wp-content/plugins/elementor/modules/page-templates/module.php(190) the_content () #24 () Elementor\Modules\PageTemplates\Module--print_callback () #25 wp-content/plugins/elementor/modules/page-templates/module.php(207) call_user_func ([{},"print_callback"]) #26 wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19) Elementor\Modules\PageTemplates\Module--print_content () #27 wp-includes/template-loader.php(106) include ("/homepages/23/d877110921/htdocs/clickandbuilds/LeTrsortudiant/wp-content/plugins/elementor/module..) #28 wp-blog-header.php(19) require_once ("/homepages/23/d877110921/htdocs/clickandbuilds/LeTrsortudiant/wp-includes/template-loader.php") #29 index.php(17) require ("/homepages/23/d877110921/htdocs/clickandbuilds/LeTrsortudiant/wp-blog-header.php")
At each of these purges, the log displays around ten similar actions (at the same time, only the number of posts is different). The snippet above is for post 53898 (flush_post(53898)) but I also have the same thing for posts 53897, 53896, 53895, up to post 53888.
This is repeated several times during the day and the numbers of posts involved go up.
I would like to point out that the posts that are mentioned in this purge log do not exist (in no case were they created by me, and I am the only administrator).
I have already searched for help on W3 Total Cache support (check this discussion : https://www.ads-software.com/support/topic/an-unknown-action-purges-my-cache-several-times-a-day/ )
I also checked my posts table, all these posts are not present, the query tells me that all these posts do not exist.
According to the feedback I received, the purge would be caused by an action from your plugin.
The Frontend_Form widget acf-frontend-form-element-pro plugin, which updates some post while it renders itself. and it causes purge.
I was also provided with this link: https://github.com/pronamic/advanced-custom-fields-pro/blob/81dca1b4d5775da1b006eff0dd347ba718d046da/includes/post-types/class-acf-post-type.php#L638
Having very little knowledge of coding, I don’t really know what to do with it.
How to filter these “posts” to purge them when they “do not exist”?
Do you know more about what calls for cache flushing?
What are the reasons ? And is it really necessary?
Do you know a way to resolve this issue?
It takes a lot of questions but without caching my pages, the user experience of my site is really worse…
I thank you for any help and remain available to provide more information about my setup and environment.
Thanks in advance to anyone who can help me!
- The topic ‘An unknown action of your plugin purges my cache several times a day’ is closed to new replies.