Catalyst-Model-HTML-FormFu
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
# If the script that is loading Module::Install is from the future,
# then make will detect this and cause it to re-run over and over
# again. This is bad. Rather than taking action to touch it (which
# is unreliable on some platforms and requires write permissions)
# for now we should catch this and refuse to run.
if ( -f $0 and (stat($0))[9] > time ) { die <<"END_DIE" }
Your installer $0 has a modification time in the future.
This is known to create infinite loops in make.
Please correct this, then run $0 again.
END_DIE
lib/Catalyst/Model/HTML/FormFu.pm view on Meta::CPAN
# if this exists in the config...
my $dir = $self->config_dir;
$file = $dir ?
Path::Class::Dir->new($dir)->file($file) :
$c->path_to(qw(root formfu), $file)
;
}
# finally
$file = $file->stringify;
my $mtime = (stat($file))[9];
my $cached_data;
my $cache = $self->cache($c);
if ($cache) {
$cached_data = $cache->get($file);
# If the cached data is older than the file, reload
if ($cached_data) {
if ($cached_data->{mtime} < $mtime) {
$c->log->debug("HTML::FormFu config file $file has been modified since last load time. Throwing away cache and reloading") if $c->log->is_debug;
undef $cached_data;
( run in 0.937 second using v1.01-cache-2.11-cpan-49f99fa48dc )