Age | Commit message (Collapse) | Author |
|
passed by reference" warnings when DB lookup fails and we return false.
(We need to keep it returning a reference because the extlib parent class is stuck in PHP 4-land and uses references everywhere, including this function's return value. Yuck!)
Also changed pkeyGet to drop the reference, since it doesn't have an upstream equivalent.
|
|
|
|
* 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
|
|
Conflicts:
classes/Memcached_DataObject.php
|
|
Conflicts:
actions/publictagcloud.php
classes/Memcached_DataObject.php
|
|
Memcached_Data_Object instances.
Should fix seemingly-random bugs due to destructor free()ing local resources by mistake.
cherry-pick from 0.9.x
|
|
might be causing some under-the-hood problems."
This reverts commit 89cca01259d71f3da961ef64def3647f86a01567.
|
|
Memcached_Data_Object instances.
Should fix seemingly-random bugs due to destructor free()ing local resources by mistake.
|
|
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.
|
|
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.
|
|
This reverts commit ec380887f71a1eadc75bad0289f9a0dbee7f2913.
|
|
|
|
Conflicts:
classes/Memcached_DataObject.php
|
|
DB_DataObject
|
|
|
|
|
|
This reverts commit b0527801d9c2b84408bbfdf82bbdc5b778f72cfc.
|
|
Conflicts:
classes/Memcached_DataObject.php
|
|
|
|
|
|
causing some under-the-hood problems.
|
|
|
|
|
|
|
|
|
|
The local process cache would grow forever, keeping things stuck in memory and preventing GC.
|
|
|
|
|
|
storage for an object when that object itself is destroyed.
Reduces some, but not all, memory leakage for long-running processes.
|
|
down to Memcached_DataObject::cacheKey() via various fetch functions, need a backtrace to track it down.
|
|
supports multiple sites on a single server.
Upgrade notes:
* Index names have changed from hardcoded 'Identica_people' and 'Identica_notices' to use the database name and actual table names. Must reindex.
New events:
* GetSearchEngine to override default search engine class selection from plugins
New scripts:
* gen_config.php generates a sphinx.conf from database configuration (with theoretical support for status_network table, but it doesn't seem to be cleanly queriable right now without knowing the db setup info for that. Needs generalized support.)
* Replaced old sphinx-indexer.sh and sphinx-cron.sh with index_update.php
Other fixes:
* sphinx.conf.sample better matches our live config, skipping unused stopword list and using a more realistic indexer memory limit
Further notes:
* Probably doesn't work right with PostgreSQL yet; Sphinx can pull from PG but the extraction queries currently look like they use some MySQL-specific functions.
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit e21d2cfdb5f259a07d7af0e3c7f5421315ed2710.
|
|
|
|
|
|
|
|
|
|
|
|
PHP doesn't get the info about the charset of the connection if
you use SET NAMES. So, we use the appropriate PHP function instead.
|
|
|
|
correctly""
This reverts commit 86770ccde7914219a0a572ced6dd21fa65566e1d.
|
|
This reverts commit 84072aa5cf6124d59a06a7f0a7945c00ee2836da.
This commit caused grievous harm to old notices on identi.ca.
Reverting until we figure out how to convert the old notices.
|
|
|
|
|
|
|
|
|