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

with varnish ? #3

Open
pulsarinformatique opened this issue Nov 12, 2021 · 3 comments
Open

with varnish ? #3

pulsarinformatique opened this issue Nov 12, 2021 · 3 comments

Comments

@pulsarinformatique
Copy link

Hi

I read on https://gist.github.com/fevangelou/84d2ce05896cab5f730a that this plugin allows joomla to use varnish if installed on the server but:

1- does it provide a way to clean the varnish cache when we update some page / content on the site ?
2- should we also activate the joomla page cache plugin ?
3-should we also activate the system (administrator/index.php?option=com_config) cache ?

thanks for your answers

cyril

@fevangelou
Copy link
Contributor

Replying...

  1. This is what cache-control headers are for - they instruct Varnish (and the user's browser) how long to cache content. So after a page is updated and given that you use sane cache times like 1-5 minutes, the page will be refreshed (updated) in the frontend after that time has passed (the few minutes you've configured in the plugin for internal pages). So don't go setting these values to hours, it's pointless.

  2. Absolutely, but disable its browse cache option as that is controlled by our plugin. And make sure URL Normalizer is sorted RIGHT BEFORE the Joomla Page Cache plugin.

  3. You have to, otherwise the System "Page Cache" plugin has no effect.

Again, set your cache values to how often you want your cache to be refreshed. Don't fall below 1 min as that is overkill, but also don't go too high (e.g. more than 30 mins - unless the content is rarely updated).

This plugin was created to assist caching with Varnish and Nginx on really large (=high traffic) Joomla sites. If you need special consulting, we're always available to assist: https://www.joomlaworks.net/support/get-help/contact

@pulsarinformatique
Copy link
Author

Hi
thanks for your answer

As for the cache control headers, do you refer to the "ExpiresByType" directives in the .htaccess file ?

thanks

@fevangelou
Copy link
Contributor

You don't need that because it is defined by the plugin. That's what makes the plugin compatible with multiple server software (e.g. Nginx, beyond Apache)...

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

2 participants