Activate the Cache Module

Share on FacebookTweet about this on TwitterShare on Google+Share on LinkedInPrint this page

A huge advantage of this plugin over other similar solutions is the speed.  Since it feature a separate framework interface as a cache module, through which it can handle server API interactions everything it’s a way much faster. Practically only a fraction of WordPress code are need to run the code making processing incredible fast.  
As example, on a WordPress instance running and loading data in 3 seconds, using the cache on the same server this plugin will take under 50 ms to complete an API call. That means it will run 60 times faster.
The cache module activation is very simple, the following code need to be inserted within wp-config.php, right above the line /* That’s all, stop editing! Happy blogging. */

 
//set software license Cache module
$action = isset($_REQUEST['sl_action']) ? $_REQUEST['sl_action'] : '';
if(trim($action) != '')
    {
        if ( !defined('ABSPATH') )
            define('ABSPATH', dirname(__FILE__) . '/');
    
        define('SOFTWARE_LICENSE_CACHE_MODULE', TRUE);
        include(dirname(__FILE__) . '/wp-content/plugins/software-license/cache-module.php');
    }