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
Craig Andrews
7a2d72fe28
Enable memcache automatic compression, starting at 20k and only if compression gain is greater than 20%.
...
Allows storage of larger objects (over 1mb in size uncompressed), such as huge LDAP schemas.
Should also improve cache efficiency (allows more stuff to be stored in same memory) and reduce network latency (less data transfer)
(redo commit 1e9c03e199
which was apparently lost during pluginization)
2010-01-04 12:49:25 -05:00
Sarven Capadisli
a0f7896f22
Ran NoticeLocationAttach() through jslint
2010-01-04 13:44:32 +00:00
Sarven Capadisli
dcc9497099
Removed unneeded line-height
2010-01-04 13:30:07 +00:00
Sarven Capadisli
9a742dd2a2
Removed comma
2010-01-04 13:28:42 +00:00
Sarven Capadisli
dcd3292f57
Relocated @title removal
2010-01-04 12:44:48 +00:00
Sarven Capadisli
30f58bf15f
Updated element id for notice_data-geo
2010-01-04 12:43:56 +00:00
Sarven Capadisli
ad323575e6
Refactored geo location removal to removeNoticeDataGeo()
2010-01-04 10:07:32 +00:00
Sarven Capadisli
fe8927a42c
Added errorCallback() to geoCurrentPosition() i.e., if user doesn't
...
grant permission, removes the Geo processing and (if any) existing geo
location data from notice form.
2010-01-04 09:52:35 +00:00
Sarven Capadisli
d1998adb13
Trim whitespace from label's textContent
2010-01-04 09:29:41 +00:00
Sarven Capadisli
9f9dcd2bf5
Using object value instead of inline string
2010-01-04 09:14:14 +00:00
Sarven Capadisli
50af9c5c40
Open geoname URL in a new window
2010-01-04 09:10:21 +00:00
Evan Prodromou
bfa3aa0e7f
Remove logging from default cache
2010-01-03 11:28:15 -10:00
Evan Prodromou
1053abd2e8
Debug utility to log cache access
2010-01-03 11:28:00 -10:00
Evan Prodromou
07236058f4
don't try to set an expiry for XCache
2010-01-03 11:27:36 -10:00
Evan Prodromou
eebc5d0d59
add keyTypes() for User_greeting_count
2010-01-03 11:27:09 -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
e940790241
update SamplePlugin.php also
2010-01-03 11:18:26 -10:00
Evan Prodromou
1348c6e819
Expand SamplePlugin to show other best practices
...
I modified the SamplePlugin to show how to do some real processing,
adding a data class and an action class and modifying the main
menu to link to the new action. I added documentation comments to
all the methods and made sure the modules were PHPCS-clean.
2010-01-03 11:02:36 -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
121c696267
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-03 06:38:55 -10:00
Evan Prodromou
249b2632f2
First version of cache plugin for XCache variable cache
2010-01-03 06:38:15 -10:00
Siebrand Mazeland
b1f11d3527
Localisation updates for !StatusNet from !translatewiki.net !sntrans
2010-01-03 11:48:21 +01:00
Evan Prodromou
8679bc6c7b
add LGPL
2010-01-02 22:46:50 -10:00
Evan Prodromou
de74c64490
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 0.9.x
2010-01-02 21:35:46 -10:00
Evan Prodromou
d7436c10d0
Add a caching plugin for APC variable cache
2010-01-02 21:34:15 -10:00
Evan Prodromou
cc5534d180
First version of Memcache plugin
2010-01-02 21:16:59 -10:00
Evan Prodromou
1e1062ca9c
Make cache.php PHPCS-clean
2010-01-02 21:00:42 -10:00
Evan Prodromou
65d07b657d
invert if for cache handling
2010-01-02 20:37:30 -10:00
Evan Prodromou
e1de1bf0fe
fix default array implementation checks
2010-01-02 20:32:56 -10:00
Evan Prodromou
c5d23e27a6
Make caching a plugin system
2010-01-02 20:26:33 -10:00
Evan Prodromou
7b452e4f71
Merge branch '0.9.x' into cacheplugin
2010-01-02 19:47:56 -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
3b912ac97e
fixup memcache functions
2010-01-02 16:27:04 -10:00
Evan Prodromou
2bd32dfad7
change harmless check of to check of in Memcached_DataObject
2010-01-02 16:21:19 -10:00
Sarven Capadisli
94af0d1279
Fix end tag
2010-01-03 02:07:55 +00:00
Sarven Capadisli
467ae9d9e7
Button should return false
2010-01-03 02:00:12 +00:00