Evan Prodromou
e50410683f
only encache new objects when insert was successful
2010-01-06 16:34:18 -10:00
Evan Prodromou
35d4587172
encache on insert instead of decaching
2010-01-05 19:48:43 -10:00
Brion Vibber
8af7ba0226
Fix for overlong RT trimming: don't trim if textlimit is 0 (unlimited)
2010-01-05 16:16:25 -08:00
Brion Vibber
9215496902
Ticket 2135: trim overlong repeats with ellipsis rather than failing.
...
In web interface and retweet/repeat API we show the original untrimmed text, but some back-compat API messages will still show the trimmed 'RT' version.
This matches Twitter's behavior on overlong retweets, though we're outputting the RT version in more API results than they do.
2010-01-05 16:10:00 -08:00
Brion Vibber
aff78e5121
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
2010-01-05 15:05:53 -08:00
Craig Andrews
250bcfa8dc
Require users to login to view attachments on private sites
...
Thank you jeff-themovie for this implementation!
2010-01-05 17:49:28 -05:00
Craig Andrews
9e2e0605ed
Move Authorization and Authentication plugin structures into core, instead of as plugins.
...
This move makes sense as you can addPlugin('Authentication') for example - these are abstract classes designed to be implemented, not used directly.
2010-01-05 13:56:22 -05:00
Evan Prodromou
4e84c523b7
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
...
Conflicts:
classes/Memcached_DataObject.php
2010-01-04 22:50:04 -10:00
Evan Prodromou
7aeb11bb07
Merge branch 'master' into 0.9.x
...
Conflicts:
actions/publictagcloud.php
classes/Memcached_DataObject.php
2010-01-04 15:14:54 -10:00
Brion Vibber
78214c4e06
Exclude process-specific link & result cache references from serialized Memcached_Data_Object instances.
...
Should fix seemingly-random bugs due to destructor free()ing local resources by mistake.
cherry-pick from 0.9.x
2010-01-04 14:38:56 -08:00
Brion Vibber
8f02379f6e
Revert "Take Memcached_DataObject destructor back out to check whether it might be causing some under-the-hood problems."
...
This reverts commit 89cca01259
.
2010-01-04 14:37:39 -08:00
Brion Vibber
440b9957f9
Exclude process-specific link & result cache references from serialized Memcached_Data_Object instances.
...
Should fix seemingly-random bugs due to destructor free()ing local resources by mistake.
2010-01-04 14:30:45 -08:00
Evan Prodromou
06b6a27d7d
cached id streams can be empty, compare against false
2010-01-04 10:03:57 -10:00
Evan Prodromou
254ea279d8
carefully compare cached settings against false for Config
2010-01-04 10:02:59 -10:00
Evan Prodromou
abc9b33241
Memcached_DataObject stores empty values in the cache
...
There's great value in knowing that something doesn't exist. We
now cache this information, and carefully compare the results from
cache as $results !== false instead of !empty($results), since some
empty values (null, 0, empty array, empty string) are stored in the
cache.
Caching staticGet() and pkeyGet() now store DB misses in the cache,
and cachedQuery() checks for empty results from the cache.
2010-01-04 10:00:17 -10:00
Evan Prodromou
5a1ea0b9b2
Stop caching unfindable keys
...
There were some problems with the automated cache/uncache system
for data objects that made us cache unfindable keys (with null
attributes and sometimes null names). Fixed those problems and
refactored the encache() and decache() methods so they use a helper
to find the cache keys to use.
2010-01-04 08:59:19 -10:00
Evan Prodromou
8f362e9956
user_id is a non-autoincrement pkey for user_location_prefs
2010-01-04 08:53:28 -10:00
Evan Prodromou
d5fb88e1c0
Revert "use keys() instead of keyTypes() so plugin data object work"
...
This reverts commit ec380887f7
.
2010-01-03 11:24:05 -10:00
Evan Prodromou
ec380887f7
use keys() instead of keyTypes() so plugin data object work
2010-01-03 10:52:24 -10:00
Evan Prodromou
90a2563a90
Merge branch 'master' into 0.9.x
...
Conflicts:
classes/Memcached_DataObject.php
2010-01-02 19:47:34 -10:00
Evan Prodromou
d32fb7c7c4
return false from Memcached_DataObject::staticGet() on not found, like DB_DataObject
2010-01-02 16:28:46 -10:00
Evan Prodromou
2bd32dfad7
change harmless check of to check of in Memcached_DataObject
2010-01-02 16:21:19 -10:00
Evan Prodromou
52fbd10162
incorrectly used empty() instead of isset() for a variable that could be 0
2010-01-02 08:36:47 -10:00
Evan Prodromou
d2bbf65f19
Merge branch 'master' of git@gitorious.org:statusnet/mainline
2010-01-01 11:27:28 -10:00
Evan Prodromou
79c2e3f720
Revert "add cleanup method to cleanup a single row"
...
This reverts commit b0527801d9
.
2010-01-01 11:27:13 -10:00
Evan Prodromou
a9d8359208
Merge branch 'master' into 0.9.x
...
Conflicts:
classes/Memcached_DataObject.php
2010-01-01 11:20:25 -10:00
Evan Prodromou
b0527801d9
add cleanup method to cleanup a single row
2010-01-01 11:02:56 -10:00
Evan Prodromou
727978332a
stop using DB_DataObject's staticGet() which caches
2010-01-01 10:57:22 -10:00
Evan Prodromou
053b8c600d
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2009-12-31 09:14:55 -10:00
Brion Vibber
89cca01259
Take Memcached_DataObject destructor back out to check whether it might be causing some under-the-hood problems.
2009-12-30 16:42:57 -08:00
Brion Vibber
ff50c2b91d
Revert debugging code
2009-12-30 16:40:59 -08:00
Brion Vibber
9218cce3cd
subbug debug info to check on free ordering
2009-12-30 15:55:15 -08:00
Evan Prodromou
ad8ea98cd7
Merge branch 'locshunt2' into 0.9.x
...
Conflicts:
classes/User_location_prefs.php
2009-12-30 08:57:39 -10:00
Evan Prodromou
544e884d30
Add magic formula to keep DB_DataObject from treating location prefs pkey as autoincrement
2009-12-30 08:56:43 -10:00
Brion Vibber
45c9d3d729
Add progress output and optional --sleep-time parameter to triminboxes.php
2009-12-29 14:17:03 -08:00
Brion Vibber
e3850e5273
Add progress output and optional --sleep-time parameter to triminboxes.php
2009-12-29 14:16:22 -08:00
Brion Vibber
0fb114c34f
Fix for saving user location preferences -- user_id field was marked as an auto-increment and wasn't getting saved with new inserts.
2009-12-29 12:49:28 -08:00
Evan Prodromou
a1b130541b
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2009-12-29 12:48:59 -08:00
Evan Prodromou
05e2b4d92d
Merge branch 'master' into 0.9.x
2009-12-29 12:09:17 -08:00
Brion Vibber
e152bec282
Fix for saving user location preferences -- user_id field was marked as an auto-increment and wasn't getting saved with new inserts.
2009-12-29 11:46:10 -08:00
Evan Prodromou
45c4078ca9
notices are immutable, use created date for updated
2009-12-28 17:51:04 -08:00
Evan Prodromou
e3789be03f
Move location-argument-handling code into a single function
...
Moved the important parts of the location-argument-handling stuff
to a single function. Handles defaults and overrides correctly, and
easy to use. Changed Web and API channels to use it.
2009-12-28 15:59:24 -08:00
Evan Prodromou
97f611107a
More configuration options for location sharing
2009-12-28 15:58:58 -08:00
Evan Prodromou
6a6d88f0f4
user_id is primary key for user_location_prefs
2009-12-28 15:58:47 -08:00
Evan Prodromou
c1e3b2f032
remove namespace setting from location; it's unused
2009-12-28 15:58:05 -08:00
Evan Prodromou
33786b2c4e
turn off exe bits
2009-12-28 15:57:54 -08:00
Evan Prodromou
51a33dc66d
add user-location-prefs data objects
2009-12-28 15:57:38 -08:00
Evan Prodromou
e119362fde
Merge branch 'locshunt' into 0.9.x
2009-12-28 15:49:27 -08:00
Evan Prodromou
98a579fedf
Merge branch 'master' into 0.9.x
2009-12-28 15:49:14 -08:00
Evan Prodromou
ca6669538a
Move location-argument-handling code into a single function
...
Moved the important parts of the location-argument-handling stuff
to a single function. Handles defaults and overrides correctly, and
easy to use. Changed Web and API channels to use it.
2009-12-28 15:13:15 -08:00