Autover

Опис

Autover plugin will automatically version your CSS and JS files. This is especially useful when using a Content Distribution Network (CDN) for delivering static files like CSS and JavaScripts. The plugin appends to the resource URL a numeric version number generated by the filemtime() PHP function (e.g. style.css?ver=1359464809). This means the version number will be updated every time the CSS or JS file is being saved.

IMPORTANT: this plugin only works with CSS and JS files that are enqueued using the standard WordPress functions wp_enqueue_style and wp_enqueue_script and/or admin_enqueue_style, admin_enqueue_script.

Снимци екрана

  • Before activation

  • After activation

Постављање

Instalacija

  1. Upload autover.zip to the /wp-content/plugins/ directory;
  2. Extract the autover.zip archive into the /wp-content/plugins/ directory;
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.

Alternatively go into your WordPress dashboard and click on Plugins -> Add Plugin and search for Autover. Then click on Install, then on Activate Now.

Upotreba

Just install and activate the plugin.
The plugin will automatically start to version your CSS and JS files that are correctly enqueued into WordPress (by using wp_enqueue_style and wp_enqueue_script and/or admin_enqueue_style, admin_enqueue_script functions).

Depending on the caching mechanism used, a purge of page (html) cache might be needed.

If you want to version only CSS or only JS files, please use the constants AUTOVER_DISABLE_JS and AUTOVER_DISABLE_CSS.

ЧПП

Why should I use this plugin?

If you want to automatically version your CSS and JavaScript files, this will help to load your CSS and JS file into the cache memory only when you change the code from the files.

What is the difference between the wp_enqueue_script and admin_enqueue_script?

The ‘admin_‘ hooks are designed for wp-admin area or so called Dashboard area, the ‘wp_‘ hooks are designed for site.

Прегледи

4. октобар 2019. 1 одговор
Does just what it says! Works great with Siteground hosting when you’re trying to update things and the caching is working against you!
3. фебруар 2017. 1 одговор
Excellent plugin to lose your CDN cache without any other interaction.
Види свих 7 прегледа

Сарадници и градитељи

„Autover“ је софтвер отвореног кода. Следећи људи су допринели овом додатку.

Сарадници

Преведите „Autover“ на свој језик.

Заинтересовани сте за градњу?

Прегледајте код, проверите SVN складиште или се пријавите на белешку градње преко RSS-а.

Белешка о изменама

1.5

  • Standardised folder structure
  • Added tests for current features and improved url replacement (custom arguments now preserved)
  • Cleanup of code

1.4

  • Cleaned up the plugin code(remove the options from DB).
  • Now the plugin uses the constants AUTOVER_DISABLE_CSS / AUTOVER_DISABLE_JS to see if it needs to ignore a resource.
  • Removed settings page (replaced by the constants AUTOVER_DISABLE_JS and AUTOVER_DISABLE_CSS).
  • Removed the file list.

1.3

  • Add file lists.

1.2

  • Enhancement: settings tab is now separated for easier understanding.
  • Enhancement: updated readme.txt file with more details and added print screens.
  • Bug fix: fixed an error at the ‘filemtime()’ function.

1.1

  • Bug fix: fixed some settings error.

1.0

  • First version on WP.