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

Remove static cache support #820

Merged
merged 2 commits into from
Nov 20, 2021
Merged

Remove static cache support #820

merged 2 commits into from
Nov 20, 2021

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Nov 20, 2021

This PR Closes #819 and removes the static cache support. The implementation has been replaced by the cache middleware in Joomlatools Server which offers the same performance benefits without the need to store an additional cache and setup Apache rewrite rules.

Details

The middleware in Joomlatools Server uses Swoole and implements an active cache proxy that understand the Pages http cache and removes the need to store additional static files and setup additional and complex Apache rewrite rules.

The performance benefits remains the same. When running in Joomlatools Server, you now have 2 levels of caching:

  • Joomlatools Server HTTP cache: +/- 25msec TTFB
  • Joomlatools Pages HTTP cache: +/- 100msec TTFB

The Joomlatools Server cache is a little simpler, then the Pages cache, if it cannot figure out if a request can be served from cache it will forward the request through FastCGI to Pages which will handle it, if Pages decides that the cache is no longer valid the page will be regenerated. Any cache revalidation requests are automatically forwarded to Pages.

Bonus: If you combine Joomlatools Server with a Fly.io’s multi-region deployment you effectively get your own active CDN.

Use Joomlatools Server instead
@johanjanssens johanjanssens merged commit c5e8997 into master Nov 20, 2021
@johanjanssens johanjanssens deleted the feature/819-static branch November 20, 2021 09:56
@johanjanssens johanjanssens mentioned this pull request Nov 23, 2021
@johanjanssens johanjanssens added this to the v0.22.0 milestone Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove static cache support
1 participant