Project

General

Profile

How can I update cache for css file of a plugin

Added by hua liu over 2 years ago

Hi,

I have modified some css style in a plugin (https://www.redmine.org/plugins/redmine_issue_badge), I have upload the modified code to server and restart redmine, but the browser still get the older one with an timestamp used before, so the new css style has no effect

how can I clear or update the cache files for css files, can anyone give me some advice, I'm a freshman for Ruby and Rails

http://<host>/plugin_assets/redmine_issue_badge/stylesheets/style.css? 1623722537

Thank you very much


Replies (2)

RE: How can I update cache for css file of a plugin - Added by Lorenzo Meneghetti over 2 years ago

Hi, assets changes done in a plugins are done in plugin folder in plugin_name/assets/....
Redmine load plugin assets from redmine_folder/public/plugin_assets/....
What you have to do after asset changes in plugin is running:

cd redmine_folder
bundle exec rake redmine:plugins RAILS_ENV=your_environment

This copy assets to correct folder.

Thanks
Lorenzo

RE: How can I update cache for css file of a plugin - Added by hua liu over 2 years ago

OK,I got it

Thank you very much

    (1-2/2)