| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 21 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 35 | public function evaluate()  | 
            ||
| 36 |     { | 
            ||
| 37 | // See if there are too many database queries  | 
            ||
| 38 |         if ($this->sample->craftTotalMs >= self::MAX_TOTAL_TIME) { | 
            ||
| 39 | $displayCraftTotalMs = ($this->sample->craftTotalMs / 1000) . 's';  | 
            ||
| 40 | $this->hasRecommendation = true;  | 
            ||
| 41 | $this->summary = Craft::t(  | 
            ||
| 42 | 'webperf',  | 
            ||
| 43 |                 'Look into utilizing the `{% cache %}` tag', | 
            ||
| 44 | []  | 
            ||
| 45 | );  | 
            ||
| 46 | $this->detail = Craft::t(  | 
            ||
| 47 | 'webperf',  | 
            ||
| 48 |                 'It took Craft a total of {displayCraftTotalMs} to render. Ensure you are utilizing the `{% cache %}` tag effectively to solve concurrency issues.', | 
            ||
| 49 | [  | 
            ||
| 50 | 'displayCraftTotalMs' => $displayCraftTotalMs,  | 
            ||
| 51 | ]  | 
            ||
| 52 | );  | 
            ||
| 53 | $this->learnMoreUrl = 'https://nystudio107.com/blog/the-craft-cache-tag-in-depth';  | 
            ||
| 54 | |||
| 55 | return;  | 
            ||
| 56 | }  | 
            ||
| 59 |