diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-05 15:05:53 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-05 15:05:53 -0800 |
commit | aff78e51216e09a6e5c95c775d636530c85736fc (patch) | |
tree | 0b10f1c932380b690e912d38635e958852873df6 /classes | |
parent | 250bcfa8dc3ebf3c2c8458f363a62c529eb3a7f6 (diff) |
Cache fixes:
* We now cache negative lookups; clear them in Memcached_DataObject->insert()
* Mark file.url as a unique key in statusnet.ini so its negative lookups are cleared properly (first save of a notice with a new URL was failing due to double-insert)
* Now using serialization for default in-process cache instead of just saving objects; avoids potential corruption if you save an object to cache, change the original object, then fetch the same key from cache again
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Memcached_DataObject.php | 1 | ||||
-rw-r--r-- | classes/statusnet.ini | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index aab1cace6..c31b2a546 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -142,6 +142,7 @@ class Memcached_DataObject extends DB_DataObject function insert() { + $this->decache(); // in case of cached negative lookups $result = parent::insert(); return $result; } diff --git a/classes/statusnet.ini b/classes/statusnet.ini index ac31148da..0db2c5d6e 100644 --- a/classes/statusnet.ini +++ b/classes/statusnet.ini @@ -92,6 +92,7 @@ modified = 384 [file__keys] id = N +url = U [file_oembed] file_id = 129 |