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
Siebrand Mazeland
7e01bb8d4f
Localisation updates for !StatusNet from !translatewiki.net !sntrans
2010-01-05 23:21:35 +01: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
Craig Andrews
f3a76bbcb7
Fix auth plugin autoregistration issue.
2010-01-05 13:42:15 -05:00
Sarven Capadisli
99c191912d
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-05 17:55:57 +00:00
Sarven Capadisli
bbef517be5
Added adminprofileflag padding for Cloudy
2010-01-05 17:54:51 +00:00
Brion Vibber
16254c14c8
Typo fix in the new default in-process cache; spewed notice warnings on deletion, breaking XHR responses.
2010-01-05 09:54:43 -08:00
Sarven Capadisli
3ad6b35d9b
Admin panel layout for Cloudy
2010-01-05 17:51:29 +00:00
Sarven Capadisli
50185aafbb
Rest of layout styles for Cloudy.
2010-01-05 17:38:59 +00:00
Sarven Capadisli
bdbc1e8d87
More updates to Cloudy theme layout
2010-01-05 18:06:12 +01:00
Sarven Capadisli
f14492fb2e
Updated Cloudy theme
2010-01-05 17:49:30 +01: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
0c31c3d80c
free some memory in createsim.php
2010-01-04 22:49:09 -10:00
Sarven Capadisli
2960193cc4
Updated default theme for geo
2010-01-05 03:07:26 +01:00
Sarven Capadisli
a08e683ac3
Reuse cookie location_enabled before .change()
2010-01-05 01:31:34 +00:00
Sarven Capadisli
48289e607b
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-05 01:16:48 +00:00
Sarven Capadisli
eb9514120a
Retain the geo data when FormNoticeXHR is complete because form gets
...
reset
2010-01-05 01:15:08 +00: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
Evan Prodromou
31585453fc
Merge branch 'master' of git@gitorious.org:statusnet/mainline
2010-01-04 15:11:04 -10:00
Evan Prodromou
31b62bf781
Merge branch 'batchlocation'
2010-01-04 15:10:43 -10:00
Sarven Capadisli
db1a7d6f88
Remove input geo data as well
2010-01-05 00:37:53 +00:00
Sarven Capadisli
9fadfd850e
If user checked shared location but didn't enter their location, don't
...
show the checkbox
2010-01-05 00:15:26 +00:00
Sarven Capadisli
d59ffeaab5
Refactored NoticeLocationAttach(). It works better in UAs that don't
...
support Geolocation API.
2010-01-04 23:36:22 +00: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
3f3d6905de
Merge branch 'locshunt2' into 0.9.x
2010-01-04 11:59:56 -10:00
Evan Prodromou
b5b7a625ba
user_id is a non-autoincrement pkey for user_location_prefs
2010-01-04 11:59:41 -10:00
Brion Vibber
e668709ce4
drop debug statement
2010-01-04 13:02:41 -08:00
Brion Vibber
af95005bc4
Ticket 2141: bugs with weighted popularity lists across year boundary.
...
Consolidated several separate implementations of the same weighting algorithm into common_sql_weight() and fixed some bugs...
For MySQL, now using timestampdiff() instead of subtraction for the comparison, so we get sane results when the year doesn't match, and utc_timestamp() rather than now() so we don't get negative ages for recent items with local server timezone.
Unknown whether the same problems affect PostgreSQL, but note that it lacks the timestampdiff() SQL function.
2010-01-04 13:01:17 -08:00
Evan Prodromou
6add2693b0
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-04 10:55:21 -10:00
Evan Prodromou
96480aa6c1
XCachePlugin returns false value for cache miss
2010-01-04 10:12:19 -10: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
Brion Vibber
f5b8177bc7
Merge branch '2141' into 0.9.x
2010-01-04 12:02:45 -08: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
a1821ec8af
default value for cache::get() changed from null to false
2010-01-04 09:59:47 -10:00
Evan Prodromou
928b5f8f2b
Differentiate between empty values and cache misses in CacheLogPlugin
2010-01-04 09:57:48 -10:00
Brion Vibber
6911e1c797
Ticket 2141: bugs with weighted popularity lists across year boundary.
...
Consolidated several separate implementations of the same weighting algorithm into common_sql_weight() and fixed some bugs...
For MySQL, now using timestampdiff() instead of subtraction for the comparison, so we get sane results when the year doesn't match, and utc_timestamp() rather than now() so we don't get negative ages for recent items with local server timezone.
Unknown whether the same problems affect PostgreSQL, but note that it lacks the timestampdiff() SQL function.
2010-01-04 11:55:27 -08:00
Craig Andrews
c0e4d7bfa2
Add 'takeOverLogin' parameter for a real SSO feel
2010-01-04 14:43:31 -05:00
Evan Prodromou
bcddcb38ce
make compression threshold and min savings config attrs for MemcachePlugin
2010-01-04 09:09:59 -10:00
Evan Prodromou
b5e0f7d572
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-04 09:01:23 -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
Brion Vibber
e3466ab51c
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-04 10:43:45 -08:00
Brion Vibber
38912b34c7
Drop the overly-prominent link to checklibs display; it's unnecessary and just confuses people.
...
The ability's still there to aid in debugging, but it won't be tempting people to click on it.
2010-01-04 10:41:52 -08:00
Brion Vibber
11d7365a15
Don't spew notices when building tag cloud if there is no popularity sum to divide by.
2010-01-04 10:39:11 -08:00
Craig Andrews
e440b69e1a
Allow an authentication plugin with the same provider_name other than the one that actually checked the password to autoregister a user
...
Allows for SSO-type plugins that don't have any information about the user other than their username to do autoregistration
2010-01-04 13:35:11 -05:00
Brion Vibber
783a2e249b
Fix for auto_increment parameter in auto-created tables via checkschema.
...
Update FeedSub plugin for non-Plugin_DataObject setup and working checkschema updates.
2010-01-04 10:30:58 -08:00