Changeset 378103
- Timestamp:
- 04/27/2011 08:17:21 PM (15 years ago)
- Location:
- embed-github-gist/trunk
- Files:
-
- 2 edited
-
embed-github-gist.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-github-gist/trunk/embed-github-gist.php
r330569 r378103 6 6 Author: Dragonfly Development 7 7 Author URI: http://dflydev.com/ 8 Version: 0. 68 Version: 0.7 9 9 License: New BSD License - http://www.opensource.org/licenses/bsd-license.php 10 10 */ … … 37 37 * @param string $bump Bump value to force cache expirey. 38 38 */ 39 function embed_github_gist_build_cache_key($id, $bump = null ) {39 function embed_github_gist_build_cache_key($id, $bump = null, $file=null) { 40 40 $key = 'embed_github_gist-' . $id; 41 41 if ( $bump ) $key .= '-' . $bump; 42 if ( $file ) $key .= '-' . $file; 42 43 return $key; 43 44 } … … 72 73 } 73 74 74 $key = embed_github_gist_build_cache_key($id, $bump );75 $key = embed_github_gist_build_cache_key($id, $bump, $file); 75 76 if ( embed_github_gist_bypass_cache() or false === ( $gist = get_transient($key) ) ) { 76 77 $http = new WP_Http; -
embed-github-gist/trunk/readme.txt
r330569 r378103 5 5 Requires at least: 2.8.6 6 6 Tested up to: 3.1 7 Stable tag: 0. 67 Stable tag: 0.7 8 8 9 9 Embed GitHub Gists into WordPress. … … 104 104 == Changelog == 105 105 106 = 0.7 = 107 * Edit to also include $file in cache key (thanks https://github.com/troufster) 108 106 109 = 0.6 = 107 110 * Embed stylesheet is now cached locally by default
Note: See TracChangeset
for help on using the changeset viewer.