Changeset 1556545
- Timestamp:
- 12/17/2016 07:08:38 AM (9 years ago)
- Location:
- wpbase-cache/trunk
- Files:
-
- 2 edited
-
wpbase-cache-admin.php (modified) (2 diffs)
-
wpbase-cache.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wpbase-cache/trunk/wpbase-cache-admin.php
r1462053 r1556545 134 134 $wpbase_cache->flush_all_cache(); 135 135 136 delete_option('wpbase_req_cache ');136 delete_option('wpbase_req_cache_new'); 137 137 138 138 echo 1; … … 151 151 } 152 152 else{ 153 delete_option('wpbase_req_cache ');153 delete_option('wpbase_req_cache_new'); 154 154 delete_option('wpbase_check_site'); 155 155 } -
wpbase-cache/trunk/wpbase-cache.php
r1462053 r1556545 71 71 $dbname = $match[1]; 72 72 $sitename = substr($dbname, 2); 73 $req_cache = get_option('wpbase_req_cache ');73 $req_cache = get_option('wpbase_req_cache_new'); 74 74 $req_cache = json_decode($req_cache, true); 75 if (!get_option('wpbase_req_cache ')) {75 if (!get_option('wpbase_req_cache_new')) { 76 76 $content = wp_remote_get("https://wpoven.com/sites/checksiteinfo/" . $sitename); 77 $return_array = json_decode($content , true);78 update_option('wpbase_req_cache ', $content);77 $return_array = json_decode($content['body'], true); 78 update_option('wpbase_req_cache_new', $content['body']); 79 79 } else { 80 80 $return_array = $req_cache;
Note: See TracChangeset
for help on using the changeset viewer.