summaryrefslogtreecommitdiff
path: root/includes/registry.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-29 23:21:22 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2008-11-29 23:21:22 +0000
commit4f8168c39ae7b97d00a749596c8774cfc82793ef (patch)
tree1594cac0e47220599b2d1180f1c16f33ae154b06 /includes/registry.inc
parentbc719d0c550fe0f6120676481d3ed5e039db4790 (diff)
downloadbrdo-4f8168c39ae7b97d00a749596c8774cfc82793ef.tar.gz
brdo-4f8168c39ae7b97d00a749596c8774cfc82793ef.tar.bz2
#338184 by Damien Tournoud: Remove special workarounds for serialize() in the registry.
Diffstat (limited to 'includes/registry.inc')
-rw-r--r--includes/registry.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/includes/registry.inc b/includes/registry.inc
index e4eb56348..a8a89f217 100644
--- a/includes/registry.inc
+++ b/includes/registry.inc
@@ -72,7 +72,11 @@ function _registry_rebuild() {
$parsed_files = _registry_parse_files($files);
$unchanged_resources = array();
- foreach (_registry_get_lookup_cache() as $key => $file) {
+ $lookup_cache = array();
+ if ($cache = cache_get('lookup_cache', 'cache_registry')) {
+ $lookup_cache = $cache->data;
+ }
+ foreach ($lookup_cache as $key => $file) {
// If the file for this cached resource is carried over unchanged from
// the last registry build, then we can safely re-cache it.
if ($file && in_array($file, array_keys($files)) && !in_array($file, $parsed_files)) {
@@ -87,7 +91,7 @@ function _registry_rebuild() {
// We have some unchanged resources, warm up the cache - no need to pay
// for looking them up again.
if (count($unchanged_resources) > 0) {
- _registry_set_lookup_cache($unchanged_resources);
+ cache_set('lookup_cache', $unchanged_resources, 'cache_registry');
}
}