/** * @inheritDoc */ public function clearResourceCache() { _backdrop_flush_css_js(); }
/** * Provides an overview of the Backdrop database update. * * This page provides cautionary suggestions that should happen before * proceeding with the update to ensure data integrity. * * @return * Rendered HTML form. */ function update_info_page() { global $databases; // Change query-strings on css/js files to enforce reload for all users. _backdrop_flush_css_js(); // Flush the cache of all data for the update status module. if (db_table_exists('cache_update')) { cache('update')->flush(); } // Get database name $db_name = $databases['default']['default']['database']; // Get the config path $config_dir = config_get_config_directory('active'); update_task_list('info'); backdrop_set_title('Backdrop database update'); $token = backdrop_get_token('update'); $output = '<p>Use this utility to update your database whenever you install a new version of Backdrop CMS and/or one of the site\'s modules.</p><p>For more detailed information, see the <a href="http://backdropcms.org/guide/upgrade">upgrading handbook</a>. If you are unsure of what these terms mean you should probably contact your hosting provider.</p>'; $output .= "<ol>\n"; $output .= "<li><strong>Make any necessary backups.</strong> This update utility will alter your database and config files. In case of an emergency you may need to revert to a recent backup; make sure you have one.\n"; $output .= "<ul>\n"; $output .= "<li><strong>Database:</strong> Back up a dump of the '" . $db_name . "' database.</li>\n"; $output .= "<li><strong>Config files:</strong> Back up the entire '" . $config_dir . "' directory.</li>\n"; $output .= "</ul>\n"; $output .= '<li>Put your site into <a href="' . base_path() . '?q=admin/config/development/maintenance">maintenance mode</a> (optional but recommended).</li>' . "\n"; $output .= "<li>Install your new files into the appropriate location, as described in the handbook.</li>\n"; $output .= "</ol>\n"; $output .= "<p>When you have performed the above steps you may proceed.</p>\n"; $form_action = check_url(backdrop_current_script_url(array('op' => 'selection', 'token' => $token))); $output .= '<form method="post" action="' . $form_action . '"><p><input type="submit" value="Continue" class="form-submit" /></p></form>'; $output .= "\n"; return $output; }