Anspress 4: Clearing WP Home Page Caching without Reason

Solved5.86K viewsIssues
0

I had a strange problem latetly. My cached Home page was cleared many times during the day, without any reason.

Adding some code in Comet Cache clearing routines, i see Anspress doing that. I have NO idea what the following means, but PLEASE Rahul comment and help here:

 

1) [internal function]: shutdown_action_hook()
2) /home/wp-includes/load.php(677): do_action(‘shutdown’)
3) /home/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
4) /home/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(NULL, Array)
5) /home/wp-includes/class-wp-hook.php(298): AnsPress_Views::insert_views(”)
6) /home/wp-content/plugins/anspress-question-answer/includes/views.php(48): ap_update_views_count(28413)
7) /home/wp-content/plugins/anspress-question-answer/includes/qameta.php(282): ap_insert_qameta(28413, Array)
8) /home/wp-content/plugins/anspress-question-answer/includes/qameta.php(114): clean_post_cache(Object(WP_Post))
9) /home/wp-includes/post.php(5714): do_action(‘clean_post_cach…’, 28413, Object(WP_Post))
10) /home/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
11) /home/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
12) /home/wp-includes/class-wp-hook.php(300): WebSharks\CometCache\Classes\Plugin->autoClearPostCache(28413)
13) /home/wp-content/plugins/comet-cache/src/includes/traits/Plugin/WcpPostUtils.php(100): WebSharks\CometCache\Classes\Plugin->autoClearHomePageCache()

selected answer

This happens everytime a VIEW of a Question happens.

Also happens with WP Super Cache. So it is not Comet Cache specific.

Thanks for reporting. I found the culprit. It was happening because I am flushing object cache on qameta update.

0

Posting a NEW Question, clears the Home page:

1) /home/wp-admin/admin-ajax.php(91): do_action(‘wp_ajax_ap_ajax’)
2) /home/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
3) /home/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
4) /home/wp-includes/class-wp-hook.php(298): AnsPress_Process_Form->ap_ajax(”)
5) /home/wp-content/plugins/anspress-question-answer/includes/process-form.php(66): AnsPress_Process_Form->process_form()
6) /home/wp-content/plugins/anspress-question-answer/includes/process-form.php(93): AnsPress_Process_Form->process_ask_form()
7) /home/wp-content/plugins/anspress-question-answer/includes/process-form.php(197): ap_save_question(Array, true)
8) /home/wp-content/plugins/anspress-question-answer/includes/ask-form.php(275): wp_insert_post(Array, true)
9) /home/wp-includes/post.php(3402): clean_post_cache(Object(WP_Post))
10) /home/wp-includes/post.php(5714): do_action(‘clean_post_cach…’, 28425, Object(WP_Post))
11) /home/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
12) /home/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array)
13) /home/wp-includes/class-wp-hook.php(300): WebSharks\CometCache\Classes\Plugin->autoClearPostCache(28425)
14) /home/wp-content/plugins/comet-cache/src/includes/traits/Plugin/WcpPostUtils.php(100): WebSharks\CometCache\Classes\Plugin->autoClearHomePageCache()

—————————-

commented on answer

Hello,
That is not a bug, its done by all cache plugin.

You are viewing 1 out of 3 answers, click here to view all answers.