Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在mod_perl中清除缓存的Rose::DB连接的配置文件数据_Perl_Dbi_Mod Perl_Rose Db_Dbi Profile - Fatal编程技术网

在mod_perl中清除缓存的Rose::DB连接的配置文件数据

在mod_perl中清除缓存的Rose::DB连接的配置文件数据,perl,dbi,mod-perl,rose-db,dbi-profile,Perl,Dbi,Mod Perl,Rose Db,Dbi Profile,我有一个mod_perl应用程序,它使用Rose::DB(postgresql驱动程序)。数据库连接在请求之间是持久的(使用DBI->connect\u cached),并且工作正常 我正在收集DB概要文件数据(并将其打印到开发环境中的输出),但我希望在每次请求后使用以下行清除概要文件数据: # $db is a Rose::DB object $db->dbh->{Profile}->{Data} = undef; $db->dbh->{Profile} = 0

我有一个mod_perl应用程序,它使用Rose::DB(postgresql驱动程序)。数据库连接在请求之间是持久的(使用DBI->connect\u cached),并且工作正常

我正在收集DB概要文件数据(并将其打印到开发环境中的输出),但我希望在每次请求后使用以下行清除概要文件数据:

# $db is a Rose::DB object
$db->dbh->{Profile}->{Data} = undef;
$db->dbh->{Profile} = 0;
如文件所述。但我仍然可以看到以前对新请求的分析结果

环境是Debian Squence、Perl 5.10.1、Apache 2.2.16、DBI 1.612和DBI::Profile 2.014123

这里我遗漏了什么,在mod_perl for DBI::Profile中有什么特别的东西需要注意吗


提前感谢您提供的任何建议/提示。

我使用以下行清除了配置文件结果:

# $db is a Rose::DB object
$db->dbh->{Profile}->{Data} = undef;
$db->dbh->{Profile} = 0;
但是,我不确定为什么将数据hash ref设置为unde(如问题中所使用的)或调用$db->dbh->{Profile}->empty()不起作用