burdapraha / oc_version_number
Helper function which fixing visitors browser cache issue after your changes at CSS or javascript
Installs: 999
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 3
Open Issues: 0
Type:vqmod-plugin
This package is not auto-updated.
Last update: 2025-01-05 22:30:17 UTC
README
Helper function which fixing visitors browser cache issue after your changes at CSS or javascript
Preview
You can also use this function for your custom files (CSS / JS, images, ...) like this:
<link href="<?php echo versionNumber($style['href']); ?>" type="text/css" rel="<?php echo $style['rel']; ?>
Installation
- Requiring installed vQmod because vQmod doesn't support installing via composer itself.
- 💲
composer require burdapraha/oc_version_number dev-master
- 💲
composer require sasedev/composer-plugin-filecopier
for files manipulating - Add this code to your 🎵 composer.json project file, extra section:
"extra": {
"filescopier": [
{
"source": "vendor/burdapraha/oc_version_number/upload",
"destination": "upload",
"debug": "true"
}
]
}
It will move vQmod xml file to correct folder.
- optionally you can add row to your
.gitignore
file with path to svg.xml (example: upload/vqmod/xml/oc_version_number.xml) - celebrate! 🎉 🎉 🎉