Changeset 1271918
- Timestamp:
- 10/23/2015 04:29:40 PM (10 years ago)
- Location:
- leaderboarded/trunk
- Files:
-
- 2 edited
-
leaderboarded.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
leaderboarded/trunk/leaderboarded.php
r1270156 r1271918 9 9 Description: Allows you to embed a Rise.global Leaderboard in your Wordpress blog 10 10 Author: Toby Beresford 11 Version: 0.2 111 Version: 0.22 12 12 Author URI: http://www.tobyberesford.com 13 13 */ … … 97 97 98 98 // Cache both a daily and weekly copy 99 wp_cache_set($cacheKey . ':' . 'd', $theBody, 'leaderboarded', 3600); 100 wp_cache_set($cacheKey . ':' . 'w', $theBody, 'leaderboarded', (86400 * 7)); 99 if ($bool_use_cache) { 100 wp_cache_set($cacheKey . ':' . 'd', $theBody, 'leaderboarded', 3600); 101 wp_cache_set($cacheKey . ':' . 'w', $theBody, 'leaderboarded', (86400 * 7)); 102 } 101 103 } 102 104 } … … 122 124 { 123 125 // find out if this is the request you are targeting and if not: abort 124 if ( 'unsigned' !== $params['unsigned'])126 if ((!(isset($params['unsigned']))) or ( 'unsigned' !== $params['unsigned'] )) 125 127 return $params; 126 128 … … 231 233 } 232 234 233 ?> 235 ?>12 -
leaderboarded/trunk/readme.txt
r1270156 r1271918 45 45 46 46 == Changelog == 47 = 0.22 = 48 * Avoid warning notifications on first instal 49 47 50 = 0.21 = 48 51 * Test for curl
Note: See TracChangeset
for help on using the changeset viewer.