Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ensembl-gh-mirror
ensembl
Commits
cc574fed
Commit
cc574fed
authored
Jul 03, 2009
by
Andreas Kusalananda Kähäri
Browse files
Clear the bound parameters in fetch_all_by_Slice_constraint() when the
cache is used.
parent
9cccb73c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
+4
-1
No files found.
modules/Bio/EnsEMBL/DBSQL/BaseFeatureAdaptor.pm
View file @
cc574fed
...
...
@@ -231,7 +231,8 @@ sub fetch_all_by_Slice_constraint {
my
$key
;
# Will only use feature_cache if hasn't been no_cache attribute set
if
(
!
defined
(
$self
->
db
()
->
no_cache
()
)
||
!
$self
->
db
()
->
no_cache
()
)
if
(
!
(
defined
(
$self
->
db
()
->
no_cache
()
)
&&
$self
->
db
()
->
no_cache
()
)
)
{
# Check the cache and return the cached results if we have already
...
...
@@ -247,6 +248,8 @@ sub fetch_all_by_Slice_constraint {
}
if
(
exists
(
$self
->
{'
_slice_feature_cache
'}
->
{
$key
}
)
)
{
# Clear the bound parameters and return the cached data.
$self
->
{'
_bind_param_generic_fetch
'}
=
();
return
$self
->
{'
_slice_feature_cache
'}
->
{
$key
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment