Best Caching Practices

Depends on use case. Nginx microcaching is simplest and most straight forward, but also not as performant since pages are re-generated every 30 seconds or whatever.

You can try starting with Nginx caching and see if its fine.

Hello @etc, Thank you for your VCL file, it works almost as expected.
However I can’t see how to cache (varnish/apache2) some pages, for example:

Can you help? :slight_smile: Thank you!

Did you change the VCL since you posted this? I checked both the pages, but they’re throwing the same headers it seems.

Which VCL did you end up using? Do you have the debug headers that I wrote in still?

Thank you for your Reply @etc .
I changed it. Yes. Because it was not being reliable.
I will activate it again tomorrow morning and will post back here.

Sorry for the trouble :blush:

Hello @etc , you can now check, sorry for the trouble.

Are you using the VCL I provided with a debug whitelist? If so, I might need to be added to it so I can see the debug headers.

I changed the group_var for caching to “true”

Can someone tell me which type of caching I turned on and how I would go about resetting/clearing the cache?

Thanks!

I think you’ll have very little to set up. See the trellis caching wiki:

The whole setup is “micro-cache” oriented, so there is no means [or need] of flushing the cache.

You can google more info on microcaching if you’re interested.

Hi there! I’m using a plugin (mobble) to send device specific views down the wire based on user agent. How is the microcaching going to affect the UA string detection? Have anybody tried this before?

Any help more than appreciated!