Skip to content

Commit 6da83ab

Browse files
committed
Favicon graphics now have version numbers for cache invalidation
1 parent 9cd29c8 commit 6da83ab

File tree

15 files changed

+31
-27
lines changed

15 files changed

+31
-27
lines changed

.github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nebula-wp",
33
"title": "Nebula",
44
"description": "Advanced Starter WordPress Theme for Developers",
5-
"version": "12.8.7.446",
5+
"version": "12.8.7.669",
66
"homepage": "https://gearside.com/nebula/",
77
"repository": {
88
"type": "git",

Nebula-Child/assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Nebula-Child/resources/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//BEGIN automated edits. These will be automatically overwritten.
22
const THEME_NAME = 'nebula-child';
3-
const NEBULA_VERSION = 'v12.8.7.446'; //Tuesday, January 7, 2025 10:41:40 AM
3+
const NEBULA_VERSION = 'v12.8.7.669'; //Tuesday, January 7, 2025 4:03:32 PM
44
const OFFLINE_URL = 'https://nebula.gearside.com/offline/';
55
const OFFLINE_IMG = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/offline.svg';
66
const META_ICON = 'https://nebula.gearside.com/wp-content/themes/Nebula-main/assets/img/meta/android-chrome-512x512.png';

Nebula-Child/style.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/scss/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Theme URI: https://nebula.gearside.com
44
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
55
Author: Nebula
6-
Version: 12.8.7.446
6+
Version: 12.8.7.669
77
License: GNU General Public License v2.0 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99
Text Domain: nebula

inc/data/nebula_theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "12.8.7.446",
2+
"version": "12.8.7.669",
33
"details_url": "https://github.com/chrisblakley/Nebula/commits/main",
44
"download_url": "https://github.com/chrisblakley/Nebula/archive/main.zip"
55
}

inc/metadata.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@
1111
global $post;
1212
$company_type = ( nebula()->get_option('business_type') )? esc_html(nebula()->get_option('business_type')) : 'LocalBusiness';
1313
$image_meta_directory = get_theme_file_uri('/assets/img/meta'); //Use this and concatenate the filenames so that it will never revert back to the parent theme if individual meta images are missing.
14-
$cache_query = ( nebula()->is_debug() )? '?nocache' . random_int(100000, 999999) . '=debug' . random_int(100000, 999999) : ''; //Add a random query string when debugging to force-clear the cache.
14+
15+
$cache_query = '?ver=' . nebula()->child_version('full'); //Start with the child theme version number that is similarly used for other assets like stylesheets and JavaScript
16+
if ( nebula()->is_debug() ){
17+
$cache_query = '?nocache' . random_int(100000, 999999) . '=debug' . random_int(100000, 999999); //Add a random query string when debugging to force-clear the cache.
18+
}
1519

1620
/*
1721
Use http://realfavicongenerator.net to generate metagraphics or upload a 512x512 image to set as the Site Icon in the Customizer.

libs/Admin/Admin.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ public function admin_brain($brain){
193193
return $brain;
194194
}
195195

196-
//POST to Index Now to inform some search engines of content update
196+
//POST to IndexNow to inform some search engines of content update
197197
public function index_now_post($post_id, $post){
198198
if ( $post->post_status !== 'publish' ){
199199
return;
@@ -205,7 +205,7 @@ public function index_now_post($post_id, $post){
205205
//Define the target search engine URL
206206
//https://www.indexnow.org/searchengines.json
207207
//Bing, for example: https://www.bing.com/indexnow/meta.json
208-
$search_engine_urls = ['https://www.bing.com/indexnow']; //As Index Now support grows, add other desired search engines to this list
208+
$search_engine_urls = ['https://www.bing.com/indexnow']; //As IndexNow support grows, add other desired search engines to this list
209209

210210
//Make the POST requests
211211
foreach ( $search_engine_urls as $search_engine_url ){
@@ -222,10 +222,10 @@ public function index_now_post($post_id, $post){
222222
]);
223223

224224
if ( is_wp_error($response) ){
225-
do_action('qm/error', 'Index Now POST error for ' . $search_engine_url);
225+
do_action('qm/error', 'IndexNow POST error for ' . $search_engine_url);
226226
} else {
227227
if ( wp_remote_retrieve_response_code($response) >= 400 ){ //Ideal response codes are 200 and 202. 4xx level response codes indicate a problem.
228-
do_action('qm/error', 'Index Now response code ' . $response_code . ' from ' . $search_engine_url); //https://www.indexnow.org/documentation
228+
do_action('qm/error', 'IndexNow response code ' . $response_code . ' from ' . $search_engine_url); //https://www.indexnow.org/documentation
229229
}
230230
}
231231
};

0 commit comments

Comments
 (0)