forked from WhiteHouse/shunt
-
Notifications
You must be signed in to change notification settings - Fork 0
mobilemobsters/shunt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
CONTENTS OF THIS FILE --------------------- * Introduction * Installation * Usage * Implementation INTRODUCTION ------------ "In electronics, a shunt is a device which allows electric current to pass around another point in the circuit by creating a low resistance path." - source: http://en.wikipedia.org/wiki/Shunt_(electrical) Shunt module provides a facility for developers to create virtual "shunts" that site administrators can trip in emergency situations, instructing Drupal to fail gracefully where functionality depends on them. For example, you might create a shunt that disables certain expensive database operations so that in case of an overwhelming traffic event like a denial of service (DOS) attack you have a way of both reducing load on the server and saving legitimate users the frustration of getting white screens or losing form submissions. This is an API module. It doesn't do anything by itself. Rather, it provides module developers the ability to define shunts and make functionality dependant on them, and it gives site administrators the ability to enable and disable said shunts via the web UI or Drush. INSTALLATION ------------ Shunt module is installed in the usual way. See https://drupal.org/documentation/install/modules-themes/modules-7. USAGE ----- To see all available drush commands, execute this command: drush --filter=shunt Enable ("trip") the shunt to disable targeted site functionality like this: A. Via Drush: drush shunt-enable B. Via admin GUI Go here: admin/config/system/shunt Enable shunt check box. Save. Disable the shunt to re-enable site functionality like this: A. Via Drush: drush shunt-disable B. Via admin GUI Go here: admin/config/system/shunt Disable shunt check box. Save. IMPLEMENTATION -------------- For instructions and examples on how to shunt-enable a module, see shunt.api.php. Note: For implementing modules to effectively degrade features gracefully, they should not require cache clears on shunt changes.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- PHP 100.0%