Commit Graph

17 Commits (5270f7fd8821707c9105247e61aab633e2114aad)

Author SHA1 Message Date
Dries Buytaert 5c8843704c - Patch #18213 by chx: boostrap system. Modified to work with HEAD, tidied
up the documentation a little.

  chx: can you double-check whether the global $conf variable is secure?
       (That is, make sure it can't be send using the URL or something.)
2005-06-22 20:19:58 +00:00
Dries Buytaert 39d0fe9a38 - User module improvements: added an 'access' column to the users-table to
keep track of the user's last access. In turn, this allowed me to:

  1. Optimize the "Who's online" block.  On drupal.org, the "Who's online"
     block requires 32 SQL queries.  With this patch, only 2 queries are
     left (eliminated 30 SQL queries), and one of the two remaining queries
     became appr. 20 times faster.

  2. Correct the "Last access" column in the user administration overview
     table.  The presented data was not accurate, which led to the column
     being removed.  You can now sort users by 'last access'.
2005-05-07 11:39:54 +00:00
Dries Buytaert e3d62d907b - Patch #19298 by Jeremy: loose caching!
Drupal's existing caching mechanism doesn't perform well on highly dynamic websites in which the cache is flushed frequently. One example is a site that is under attack by a spambot that is posting spam comments every few seconds, causing all cached pages to be flushed every few seconds.  Loose caching immediately flushes the cache only for specific users who have modified cached data (whether or not they are logged in), delaying the flushing of data for other users by several minutes.

(I rewrote the help text a bit and made minor changes to the code comments.)
2005-04-11 19:05:52 +00:00
Dries Buytaert 2ba1d5bbcc - Simplified the session code (PostgreSQL update). 2005-03-01 20:15:10 +00:00
Steven Wittens 365930732d - Missing '>' (reported by Goba) 2005-03-01 18:45:38 +00:00
Steven Wittens ff386b90bb #17747: PGSQL improvements 2005-02-28 18:00:59 +00:00
Dries Buytaert f4132656b1 - Patch #15399 by adschar: fixed PHP5 error when a new session is inserted into the session table. (Better fix.) 2005-01-10 19:36:21 +00:00
Dries Buytaert 2e5f82c1e1 - Patch #15399 by adschar: fixed PHP5 error when a new session is inserted into the session table. 2005-01-10 19:33:23 +00:00
Dries Buytaert f01bd675c0 - Performance improvement: made 'sid' the primary key of the sessions table.
That should improve performance of session handling as well improve
  performance of the "Who's online"-block.  Drupal.org's sessions table
  contains appr. 40.000 sessions on a slow day and rendering the "Who's
  online"-block became a performance bottleneck.

  This change has yet to be tested on a busy site so things might go wrong.
2004-11-07 21:53:55 +00:00
Dries Buytaert 94e30bf776 - Patch by JonBob: for consistency and readability, add brief descriptions of each source file inside the @file comment block at the head of the file. This helps with Doxygen indexing, and also allows neophytes to see what a file does immediately on opening the source, regardless of the organization of the hooks. 2004-08-21 06:42:38 +00:00
Dries Buytaert 1ad9afb8a7 - Added support for multiple user roles. Patch by Jim Hriggs. 2004-05-10 20:34:25 +00:00
Dries Buytaert 51f4693c8b - Fixed bug in session query that prevented sessions to work on PostgreSQL.
Patch by Adrian.
2004-01-17 10:06:04 +00:00
Dries Buytaert eee72bfa95 - Patch 4859: new drupal_unpack() consolidates duplicate code and makes it
easy to show avatars next to nodes and comments.  Patch by Moshe.  As a
  showcase, maybe Xtemplate should have an option to enable/disable avatars?
2004-01-13 19:25:37 +00:00
Dries Buytaert 6f80df7762 - Fixed bug 4745: undefined warning in sess_read(). 2004-01-11 20:03:36 +00:00
Dries Buytaert 1c0155bc9d - Fixed race condition in session handler. Patch by Kjartan. 2003-12-13 13:00:47 +00:00
Kjartan Mannes 2ffa04f5f2 - Fixes bug #4100: First visit to site results in 'access denied' page.
- Fixed sess_write().
- Removed dead code in index.php.
2003-11-18 23:37:48 +00:00
Dries Buytaert a0640e66b7 - Improved module loading when serving cached pages. Moshe's bootstrap patch.
- Used legend and fieldset tags for the configuration page.
2003-11-18 19:44:36 +00:00