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

Add different cache purging mechanism.... #138

Open
erikdemarco opened this issue Jul 24, 2021 · 0 comments
Open

Add different cache purging mechanism.... #138

erikdemarco opened this issue Jul 24, 2021 · 0 comments

Comments

@erikdemarco
Copy link

Currently the way simple-cache handle expired cache is by bulk deleting all cache at the same time. Does it scaling well?

for example a site having hundred thousand of post cached. And the expiry_time set to 1 hour. and php time_limit is set to 30 seconds (php default settings). Will it finish delete all those in those timeframe?

Deleting all those pages at the same time doesn't feel like very friendly solution to server resources.

The standard way clearing cache (check and clear only when the url requested) is much more friendly to server resources and much more stable. This is also how nginx delete expired content. Nginx has been deployed many years by many giant sites. So this way of clearing the cache files dont need to be doubt anymore. It has been battle tested.

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

No branches or pull requests

1 participant