slav123 / CodeIgniter-minify

CodeIgniter minify library CSS and JavaScript compression on the fly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add clearstatcache();

dejurin opened this issue · comments

When I develop an application, I often reload the script data, but the "filesize" function in "linux" has a cache. Subsequently, files are not generated until the end.

Add before

clearstatcache();
$contents = fread($handle, filesize($out_file));

Nice catch. We will switch to file_get_contents since it's a recommended way to handle loading file source to variable.

Thanks.

Thank U