wpForo clears Home ...
 
Notifications
Clear all

wpForo 1.x.x [Solved] wpForo clears Home Page cache in every login

13 Posts
2 Users
1 Likes
979 Views
dimalifragis
Posts: 2539
Topic starter
(@dimalifragis)
Famed Member
Joined: 4 years ago

I try to debug this issue: Home page caching is cleared in every login of some user. Without reason, since nothing is changed. Nothing to do with Home.

Disabling the plugins one by one, we found wpForo to be the cause.

We even tried some other caching plugin, just in case. Same issue.

Why is that happening? Why wpForo clears the home page caching (somehow) in every login? wpForo has its own page and see no widgets or anything related to wpForo at home page.

Thanks

12 Replies
dimalifragis
Posts: 2539
Topic starter
(@dimalifragis)
Famed Member
Joined: 4 years ago

Here is the proof:

 

1) /home/wp-login.php(1142): wp_signon(Array, true)
2) /home/wp-includes/user.php(110): do_action('wp_login', 'UserNameXXXXX', Object(WP_User))
3) /home/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
4) /home/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
5) /home/wp-includes/class-wp-hook.php(303): wpforo_actions_on_wp_login('UserNameXXXXX', Object(WP_User))
6) /home/wp-content/plugins/wpforo/wpf-includes/wpf-hooks.php(1712): wpForoMember->inactive_to_active(1)
7) /home/wp-content/plugins/wpforo/wpf-includes/class-members.php(1069): wpForoMember->reset(1)
8) /home/wp-content/plugins/wpforo/wpf-includes/class-members.php(1992): wpforo_clean_cache('user', 1)
9) /home/wp-content/plugins/wpforo/wpf-includes/functions.php(1315): clean_post_cache(Object(WP_Post))
10) /home/wp-includes/post.php(7185): do_action('clean_post_cach...', 932, Object(WP_Post))
11) /home/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
12) /home/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
13) /home/wp-includes/class-wp-hook.php(305): MegaOptim\RapidCache\Classes\Plugin->autoClearPostCache(932)
14) /home/wp-content/plugins/rapid-cache/includes/src/Traits/Plugin/WcpPostUtils.php(107): MegaOptim\RapidCache\Classes\Plugin->autoClearHomePageCache()

 

----------------------------

 

dimalifragis
Posts: 2539
Topic starter
(@dimalifragis)
Famed Member
Joined: 4 years ago

Can i have an anwer to my problem please?

9 Replies
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

Hi @dimalifragis,

wpForo uses WordPress Login functional, and we didn't even write any code, it's all WordPress functional. 

dimalifragis
(@dimalifragis)
Joined: 4 years ago

Famed Member
Posts: 2539

@chris Not sure what the above means.

Tried also WP Super Cache ( from Automattic), same issue, same debug logs.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@dimalifragis,

Open class-members.php file from /wp-content/plugins/wpforo/wpf-includes/ and remove/comment line 1992:

Please check the attached Screenshot:

dimalifragis
(@dimalifragis)
Joined: 4 years ago

Famed Member
Posts: 2539

@chris Thanks. Can you give me a clear answer pls. Is that an issue of wpForo? Is that an issue of caching plugins? Or some plugins hooking tooo early?

I do not want to comment anything out, since i do not remember to do it again after updates.

I always want to find/pinpoint and fix issues once for all.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@dimalifragis,

wpForo clears caches in wpForo pages which have [wpforo] shortcode after User Login, and if wpForo is set on your homepage it will also delete homepage cache.
Want to let you know that in wpForo 2.0 we are going to make cache reset optimization.

Also wanted to know, are you using wpForo on your homepage?

dimalifragis
(@dimalifragis)
Joined: 4 years ago

Famed Member
Posts: 2539

@chris Thank you for the reply.

NO i do not use anything from wpForo in my Home page (widgets for example).

Also this is not a major issue, since it is only one page clearing.

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@dimalifragis,

Can you edit page with 932 ID and make a screenshot of it?

dimalifragis
(@dimalifragis)
Joined: 4 years ago

Famed Member
Posts: 2539

@chris Sure here it is:

 

 

Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3650

@dimalifragis,

The Log you mentioned above shows that wpForo cleans 932ID Page cache, and how we see 932ID page is wpForo page, and that means that wpForo cleans own page not your Homepage.

dimalifragis
Posts: 2539
Topic starter
(@dimalifragis)
Famed Member
Joined: 4 years ago

You are correct Chris. The Page ID is of the Forum page. This is weird.

But when i disable wpForo plugin, this doesn't happen and the debug of the cache is clean.

Anyways, many thanks.