My scripts constantly have to compare the modification dates of two files. To make the script work I have to clear my cache in PHP each time. Is there a more efficient way to compare file modification dates than this?
<?php
clearstatcache();
if(filemtime('file1.html') > filemtime('file2.html')){}
?>