Coder Social home page Coder Social logo

razorlegacy / memcached-output-cache-for-codeigniter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from weejames/memcached-output-cache-for-codeigniter

0.0 2.0 0.0 93 KB

Enhanced version of CodeIgniters Output library that stores generated HTML on a Memcached server instead of the filesystem

Home Page: http://jamesconstable.co.uk

PHP 100.00%

memcached-output-cache-for-codeigniter's Introduction

Memcached Output Cache for CodeIgniter
by James Constable
[email protected]
@weejames

08/07/2010

Intro:
This library allows you to use Memcached as a frontend caching mechanism for CodeIgniter.  It overrides the underlying functions associated with the standard web page caching functionality described 
here: http://codeigniter.com/user_guide/general/caching.html

Requirements:
Existing Memcached Server
CodeIgniter 1.7.2
PHP 5.2 (not a requirement but that's all i've tested with)
PHP Memcached extension

Usage:

1) Place MY_Output.php in application/libraries/ (if you've changed the subclass_prefix configuration you may need to alter the filename).
2) Place the memcached.php in application/config/ and fill in the values appropriately.
3) Enable caching in the appropriate controllers.

The functions are syntactically compatible with the existing cache functionality and caches are still enabled using $this->output->cache(n) within your controllers. Cached pages will still persist 
until expiration, or the cache is cleared manually on the Memcached server.

Note: Unlike the CodeIgniter library, this modification also takes into account the contents of the $_GET and $_POST arrays when caching data.

memcached-output-cache-for-codeigniter's People

Contributors

weejames avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.