View Issue Details

IDProjectCategoryView StatusLast Update
0005696OXID eShop (all versions)4.08. Cachepublic2014-08-28 08:11
Reporteraurimas.gladutis Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Version4.7.7 / 5.0.7 
Target Version4.8.8 / 5.1.8Fixed in Version4.9.0_5.2.0_RC1 
Summary0005696: Shop waits for 5 minutes before rechecking if the page should be cached, which is incorrect in some cases.
DescriptionIt seems that the shop sometimes sends the header "Pragma: no-cache" or "Cache-Control: no-cache" for the startpage.
On the Varnish server in the function oxInvalidateFetch this leads to the fact that the page is not cached and this decicision is "remembered" by Varnish for the next five minutes:
  set beresp.ttl = 300s;
  return(hit_for_pass);

Why and in which circumstances does the shop's startpage sometimes/sporadically send the header "Pragma: no-cache" or "Cache-Control: no-cache"?
TagsNo tags attached.
ThemeBoth
BrowserAll
PHP Versionany
Database Versionany

Activities

mantas.vaitkunas

2014-08-28 08:11

reporter   ~0010102

If one of the visitors gets error, for example http status code 500, for every other user content is not cached for 300s. So changed condition when beresp.status >= 400 than beresp.ttl is set to 0s.