Plugin Directory

Changeset 378103


Ignore:
Timestamp:
04/27/2011 08:17:21 PM (15 years ago)
Author:
dflydev
Message:

Updated to 0.7

Location:
embed-github-gist/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • embed-github-gist/trunk/embed-github-gist.php

    r330569 r378103  
    66Author: Dragonfly Development
    77Author URI: http://dflydev.com/
    8 Version: 0.6
     8Version: 0.7
    99License: New BSD License - http://www.opensource.org/licenses/bsd-license.php
    1010*/
     
    3737 * @param string $bump Bump value to force cache expirey.
    3838 */
    39 function embed_github_gist_build_cache_key($id, $bump = null) {
     39function embed_github_gist_build_cache_key($id, $bump = null, $file=null) {
    4040    $key = 'embed_github_gist-' . $id;
    4141    if ( $bump ) $key .= '-' . $bump;
     42    if ( $file ) $key .= '-' . $file;
    4243    return $key;
    4344}
     
    7273    }
    7374
    74     $key = embed_github_gist_build_cache_key($id, $bump);
     75    $key = embed_github_gist_build_cache_key($id, $bump, $file);
    7576    if ( embed_github_gist_bypass_cache() or false === ( $gist = get_transient($key) ) ) {
    7677        $http = new WP_Http;
  • embed-github-gist/trunk/readme.txt

    r330569 r378103  
    55Requires at least: 2.8.6
    66Tested up to: 3.1
    7 Stable tag: 0.6
     7Stable tag: 0.7
    88
    99Embed GitHub Gists into WordPress.
     
    104104== Changelog ==
    105105
     106= 0.7 =
     107 * Edit to also include $file in cache key (thanks https://github.com/troufster)
     108
    106109= 0.6 =
    107110 * Embed stylesheet is now cached locally by default
Note: See TracChangeset for help on using the changeset viewer.