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

wp_schedule_event that performs pool maintenance #12

Closed
Biont opened this issue Feb 18, 2019 · 0 comments · Fixed by #14
Closed

wp_schedule_event that performs pool maintenance #12

Biont opened this issue Feb 18, 2019 · 0 comments · Fixed by #14

Comments

@Biont
Copy link
Member

Biont commented Feb 18, 2019

As suggested by the docs:

Some drivers require that maintenance action be performed regular. The FileSystem and SQLite drivers, as an example, need to remove old data as they can't do it automatically. These operations are all abstracted away behind Pool->purge() but will need to be called regularly by the integrating applications.

The Pool->purge() function should be called as a stand alone operation. Depending on the Driver being used this can take longer than your typical action and should not be tied to a user request. It is also recommended that this be run from a command line where possible, such as in an automated cron job, in order to improve performance.

WP Stash does not currently do this, which probably bloats cache pools that do not invalidate automatically . This might add to problems when clearing the entire cache as described in #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant