Skip to content
Snippets Groups Projects
Commit e7c68c4d authored by Gerry Weißbach's avatar Gerry Weißbach Committed by GitHub
Browse files

Check for cache usage first

This is important because the $cache->cache would have been set already and have no impact on the delivered result. Meaning: two different requests could have resulted in the same result.
parent 4f1465c1
No related branches found
No related tags found
No related merge requests found
......@@ -103,8 +103,8 @@ function css_out(){
// check cache age & handle conditional request
// This may exit if a cache can be used
http_cached($cache->cache,
$cache->useCache(array('files' => $cache_files)));
$cache_ok = $cache->useCache(array('files' => $cache_files));
http_cached($cache->cache, $cache_ok);
// start output buffering
ob_start();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment