Coder Social home page Coder Social logo

lts2's Introduction

Magento LightSpeed Module v2

LTS2 is an advanced FPC cache engine for Magento 1.x with nested blocks capability.

How to install

  • First of all you have to turn off your Magento cache (very important)
  • Copy this module in your Magento root
  • Turn on your cache by clicking "refresh"

If you get an error empty your cache manually:

In standard installations you must clear the content of var/cache (be careful, do not remove the folder itself). If you have another cache engine like redis or memcache you will have to flush them or restart.

How to uninstall

Just remove the files ;) Remember to remove app/code/local/Mage/Core/Block/Abstract.php

Configuring the cache

The LTS2 module configuration is entirely PHP driven for the best performance and flexibility. All the configration parameters are inside MSP_LTSR2_Model_Cache class.

You can configure LTS2 by modifying two class methods: _getActionCacheData and _getBlockCacheData .

Each method must return one PHP hash containing the following keys:

  • type: How to handle the item (HANDLING_CACHE or HANDLING_NOCACHE)
  • keys: Cache key (different keys means different cached version of this item)
  • lifetime: Cache expire time in seconds
  • tags: Magento cache tags

_getActionCacheData method:

Defines caching options depending on the action.

_getBlockCacheData method:

Defines block caching options on cached actions.

lts2's People

Contributors

phoenix128 avatar

Watchers

James Cloos avatar Tarikul Islam Jewel 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.