Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only flush the plugins cache, not *all* WP caches. #325

Merged
merged 1 commit into from
Apr 24, 2015

Conversation

jrfnl
Copy link
Contributor

@jrfnl jrfnl commented Apr 23, 2015

This will save a lot of overhead of other (page/metadata) caches having to be recreated because we flushed them.

This function was introduced in WP 3.7, so requires upping the minimum requirement of TGMPA.

Alternatively - if we wouldn't want to up the minimum requirement yet -, we could wrap this in a function_exists() if then else block.

[Edit]
Looking into this further, we could also choose to remove the flush calls completely and just up the minimum requirements as a quick check shows that WP 3.7+ will flush the plugin cache already. This, however, would need to be thoroughly checked for all situations in which we flush the cache.

This will save a lot of overhead of other (page/metadata) caches having to be recreated because we flushed them.

This function was introduced in WP 3.7, so requires upping the minimum requirement of TGMPA.
@GaryJones
Copy link
Member

I'm fine with upping the minimum level. I don't think anyone (TGMPA or themes and plugins that use it) should be supporting that far back anyway. Now 4.2 is out, I'd rather say that 4.0 is the minimum.

Leaving open until you're happy enough to add the reviewmerge label and milestone.

@jrfnl jrfnl added this to the 2.5.0 milestone Apr 24, 2015
@jrfnl
Copy link
Contributor Author

jrfnl commented Apr 24, 2015

I'm happy to merge it like this for the 2.5 release. I suggest we revisit if we still need the flushing at all when developing 3.0.

GaryJones added a commit that referenced this pull request Apr 24, 2015
Only flush the plugins cache, not *all* WP caches.
@GaryJones GaryJones merged commit e8f1b7c into develop Apr 24, 2015
@GaryJones GaryJones deleted the feature/flush-selectively branch April 24, 2015 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants