We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74bf789 commit 06891acCopy full SHA for 06891ac
source/Parser.php
@@ -90,11 +90,17 @@ public function getDiscoveredCompilers()
90
public function process($from)
91
{
92
$to = preg_replace("/\.[a-zA-Z]+$/", ".php", $from);
93
- $this->compile($from, $to);
94
-
+ if(!$this->isProcessed($from, $to)) {
+ $this->compile($from, $to);
95
+ }
96
return require $to;
97
}
98
99
+ private function isProcessed($from, $to)
100
+ {
101
+ return (file_exists($to) && (filemtime($from) < filemtime($to)));
102
103
+
104
public function compile($from, $to, $format = true, $comment = true)
105
106
if (file_exists($from)) {
0 commit comments