line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package App::SimpleScan::Plugin::Cache; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
4
|
|
|
|
|
|
|
|
5
|
1
|
|
|
1
|
|
27166
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
34
|
|
6
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
7
|
1
|
|
|
1
|
|
4
|
use Carp; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
93
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub pragmas { |
10
|
1
|
|
|
1
|
|
4
|
no strict 'refs'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
158
|
|
11
|
0
|
|
|
0
|
1
|
|
*{caller() . '::_cache'} = \&_do_cache; |
|
0
|
|
|
|
|
|
|
12
|
0
|
|
|
|
|
|
*{caller() . '::_nocache'} = \&_do_nocache; |
|
0
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
return ['cache', \&_do_cache], |
14
|
|
|
|
|
|
|
['nocache', \&_do_nocache]; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub _do_nocache { |
18
|
0
|
|
|
0
|
|
|
my ($self, $rest) = @_; |
19
|
0
|
|
|
|
|
|
$self->stack_code("mech()->nocache();\n"); |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub _do_cache { |
23
|
0
|
|
|
0
|
|
|
my ($self, $rest) = @_; |
24
|
0
|
|
|
|
|
|
$self->stack_code("mech()->cache();\n"); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; # Magic true value required at end of module |
29
|
|
|
|
|
|
|
__END__ |