New answers tagged

5

How does BigPipe have an effect if my traffic is mostly anonymous and behind varnish? This really depends on the content of the page. Taking away any content depending on the logged-in user there might be no dynamic part left which could have any effect. Additionally, why does the second request bypass Varnish? As mentioned in the module description it is ...


0

Any value for the expire column that is different from CacheBackendInterface::CACHE_PERMANENT (-1) is considered a timestamp, indicating when the cache entry could be deleted. In the case of NULL, the value means the cache entry could be deleted in any moment. As @4k4 said in his comment, data in cache tables are deleted when cron tasks run, and that doesn't ...


3

The code depends on host name and IP address. So you could add the cache contexts url.site and ip: $response = new TrustedRedirectResponse('https://site.ch/'); $response->getCacheableMetadata()->addCacheContexts(['ip', 'url.site']); $event->setResponse($response); In this case, though, caching doesn't make much sense because it doesn't save many ...


0

Drupal 8 Using Drush you can clear the generated files using drush advagg-clear-all-files or to force-generating new files by incrementing a global counter use drush advagg-force-new-aggregates


Top 50 recent answers are included