Anspress 4: Clearing WP Home Page Caching without Reason

Solved4.50K 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

Hello Cagliostro,

Please try my latest fix and lemme know.

selected as best answer

Seems fixed, many thanks !

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