Line 511 in /srv/www/com.openforce.www-dev/vendor/silverstripe/framework/src/View/SSViewer.php
502 * @param bool $force Set this to true to force a re-flush. If left to false, flushing 503 * may only be performed once a request. 504 */ 505 public static function flush_template_cache($force = false) 506 { 507 if (!self::$template_cache_flushed || $force) { 508 $dir = dir(TEMP_PATH); 509 while (false !== ($file = $dir->read())) { 510 if (strstr($file, '.cache')) { 511 unlink(TEMP_PATH . DIRECTORY_SEPARATOR . $file); 512 } 513 } 514 self::$template_cache_flushed = true; 515 } 516 } 517