Project

General

Profile

Actions

Feature #1525

closed

memcached support for mod_magnet + updated mod_deflate in 1.4.18

Added by Anonymous over 16 years ago. Updated 8 months ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
No

Description

This patch adds memcached support for lua scrips running under mod_magnet. It does not use namespaces yet, but an example lua script and lighttpd.conf snippet are also attached to show how I'm using it. It also has an updated mod_deflate for 1.4.18 (just re-importing the last one from 1.4.18 from the wiki). It has been running in production use on a site serving between 600K and 1.3M pages a day since January 8th with no problems.

-- jeremy


Files

mc_magnet-example.lua (1.06 KB) mc_magnet-example.lua example lua script and conf for mod_magnet with memcached -- jeremy Anonymous, 2008-01-17 23:18
Actions #1

Updated by stbuehler almost 16 years ago

  • Target version changed from 1.4.20 to 1.4.21
Actions #2

Updated by icy over 15 years ago

  • Target version changed from 1.4.21 to 1.4.22
  • Patch available set to No
Actions #3

Updated by stbuehler over 15 years ago

  • Target version changed from 1.4.22 to 1.4.23
Actions #4

Updated by stbuehler over 15 years ago

  • Status changed from New to Wontfix

Looks like the patch got lost in the trac->redmine migration.

As it is possible to save persistent data in the lua scripts (_G - see User Tracking in AbsoLUAtion), i see now reason why we should wrap memcache in mod_magnet.

Btw: The point of using patches is to have them separated, not to mix them.

Actions #5

Updated by gstrauss 8 months ago

  • Status changed from Wontfix to Fixed
  • Target version deleted (1.4.23)
  • ASK QUESTIONS IN Forums set to No

An example lua script for mod_magnet using memcached can be found in lua mod_trigger_b4_dl. It should work with lighttpd 1.4.60 or later, but can be adapted for earlier versions.

mod_deflate has been part of lighttpd 1.4 since lighttpd 1.4.42. (#1824, #2753)

Actions

Also available in: Atom