Plugin Directory

Changeset 1264891


Ignore:
Timestamp:
10/13/2015 01:18:05 PM (10 years ago)
Author:
Shopello
Message:

New release 2.8.0

Location:
shopello/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • shopello/trunk/readme.txt

    r1263839 r1264891  
    55Requires at least: 4.2.0
    66Tested up to: 4.3
    7 Stable tag: 2.7.5
     7Stable tag: 2.8.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050
    5151== Changelog ==
     52= 2.8.0 =
     53* This is also the last planned release of this plugin.
     54* Resolved major cache-bug in API result. This should resolve image-issues.
     55
    5256= 2.7.5 =
    5357* This is the last planned release of this plugin.
  • shopello/trunk/shopello_api.php

    r1263839 r1264891  
    88 * Plugin URI: http://shopello.se/api/wordpress
    99 * Description: This plugin was created to allow wordpress blogs and websites to in a simple manner include listings of products from Shopello.se.
    10  * Version: 2.7.5
     10 * Version: 2.8.0
    1111 * Author: Shopello AB
    1212 */
  • shopello/trunk/src/classes/SWP/ApiClient.php

    r1155987 r1264891  
    3535    public function __call($method, $params)
    3636    {
    37         $cacheKey = 'swp_'.$method.'_'.md5(json_encode($params));
     37        // Limit cachekey length to max characters in the database field
     38        $cacheKey = 'swp_'.$method.'_'.substr(md5(json_encode($params)), 0, 16);
    3839
    3940        $data = get_transient($cacheKey);
    4041
    41         if (false === $data || false === $this->cache) {
     42        if (false === $data) {
    4243            $data = call_user_func_array(array($this->shopelloApi, $method), $params);
    4344
    44             set_transient($cacheKey, $data, 3600);
     45            if (false !== $this->cache) {
     46                set_transient($cacheKey, $data, 3600);
     47            }
    4548        }
    4649
  • shopello/trunk/vendor/autoload.php

    r1263839 r1264891  
    55require_once __DIR__ . '/composer' . '/autoload_real.php';
    66
    7 return ComposerAutoloaderInit755733c9d2634fb1fc2af1c72063bdf6::getLoader();
     7return ComposerAutoloaderInit1a7a22062b2140d570426a4dd59cb166::getLoader();
  • shopello/trunk/vendor/composer/autoload_real.php

    r1263839 r1264891  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit755733c9d2634fb1fc2af1c72063bdf6
     5class ComposerAutoloaderInit1a7a22062b2140d570426a4dd59cb166
    66{
    77    private static $loader;
     
    2020        }
    2121
    22         spl_autoload_register(array('ComposerAutoloaderInit755733c9d2634fb1fc2af1c72063bdf6', 'loadClassLoader'), true, true);
     22        spl_autoload_register(array('ComposerAutoloaderInit1a7a22062b2140d570426a4dd59cb166', 'loadClassLoader'), true, true);
    2323        self::$loader = $loader = new \Composer\Autoload\ClassLoader();
    24         spl_autoload_unregister(array('ComposerAutoloaderInit755733c9d2634fb1fc2af1c72063bdf6', 'loadClassLoader'));
     24        spl_autoload_unregister(array('ComposerAutoloaderInit1a7a22062b2140d570426a4dd59cb166', 'loadClassLoader'));
    2525
    2626        $map = require __DIR__ . '/autoload_namespaces.php';
     
    4545}
    4646
    47 function composerRequire755733c9d2634fb1fc2af1c72063bdf6($file)
     47function composerRequire1a7a22062b2140d570426a4dd59cb166($file)
    4848{
    4949    require $file;
Note: See TracChangeset for help on using the changeset viewer.