Plugin Directory

Changeset 1359837


Ignore:
Timestamp:
02/27/2016 08:44:42 PM (9 years ago)
Author:
andrewsauder
Message:

1.0.18

  • modified sitemap caching mechanism to prevent duplication on network sites
Location:
local-geo-search/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • local-geo-search/trunk/admin/admin.geoseo.php

    r1229736 r1359837  
    193193
    194194            if($data['slug']!=$input['slug']) {
    195                 geo_seo_cacheSys::put('previousslug', $data['slug'], $data['slug']);
    196                 geo_seo_cacheSys::deleteCachedItem('sitemap', 'sitemapjson');
     195                geo_seo_cacheSys::put('previousslug'.$input['websiteID'], $data['slug'], $data['slug']);
     196                geo_seo_cacheSys::deleteCachedItem('sitemap'.$input['websiteID'], 'sitemapjson');
    197197            }
    198198
  • local-geo-search/trunk/geoseo.php

    r1359821 r1359837  
    44* Plugin URI: https://www.localgeosearch.com
    55* Description: Local GEO Search creates hundreds of location specific pages on your site to target your services in your market.
    6 * Version: 1.0.17
     6* Version: 1.0.18
    77* Author: Elite Impressions, LLC
    88* Author URI: http://www.localgeosearch.com
  • local-geo-search/trunk/readme.txt

    r1359821 r1359837  
    5050
    5151== Changelog ==
     52= 1.0.18 =
     53* modified sitemap caching mechanism to prevent duplication on network sites
     54
    5255= 1.0.17 =
    5356* changed sitemap generation to use full url instead of absolute path - fixes issue on network Wordpress sites
  • local-geo-search/trunk/sitemapgen/fns.sitemap.php

    r1359821 r1359837  
    33function geo_seo_createGenericSiteMapData() {
    44
     5    $settings = geo_seo_getData();
     6
    57    //take sitemap data up to 12 hours old...
    6     $sitemapRawData = geo_seo_cacheSys::get('sitemap','sitemapjson', 43200);
     8    if(!isset($settings['website']) || $settings['website']=='') {
     9        return array();
     10    }
     11    else {
     12        $sitemapRawData = geo_seo_cacheSys::get('sitemap'.$settings['website'],'sitemapjson', 43200);
     13    }
    714
    815    if($sitemapRawData===false) {
    9         $settings = geo_seo_getData();
    1016
    1117        $fullURL = geoseotools::full_url($_SERVER);
     
    3440            delete_option( 'geo_seo_error' );
    3541            $sitemapRawData = $json['data']['sitemap'];
    36             geo_seo_cacheSys::put('sitemap','sitemapjson', json_encode($sitemapRawData));
     42            geo_seo_cacheSys::put('sitemap'.$settings['website'],'sitemapjson', json_encode($sitemapRawData));
    3743        }
    3844        else {
     
    112118        $urls = geo_seo_createGenericSiteMapData();
    113119
    114         $previousSlugs = geo_seo_cacheSys::getCategory('previousslug');
     120        $previousSlugs = geo_seo_cacheSys::getCategory('previousslug'.$settings['website']);
    115121
    116122        //remove old geo seo stuff
Note: See TracChangeset for help on using the changeset viewer.