Clear cached CSS and/or JS button

alrueden - October 28, 2009 - 19:47
Project:Boost
Version:6.x-1.13
Component:Caching logic
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Excellent module, pretty easy to set up and use. I got it up and running yesterday and noticed an immediate improvement. Everything's great so far. But...now I need to tweak the CSS on my custom theme, and I can't figure out how to get rid of the Boost cached versions!

Under Boost settings, I disabled Static page cache, Cache CSS, and Ignore cache flushing. Saved and then tried flushing the caches both through Drupal's Performance page and Boost. I cleared Boost's database as well. That seems to have gotten rid of everything except what I wanted to lose, the CSS files. I tried disabling the module. I even tried deleting the CSS files via FTP, but I get Permission Denied.

Am I missing something obvious here?

#1

mikeytown2 - October 28, 2009 - 20:28

CSS files will get overwritten, so if you change it it will auto update with the latest version. In terms of deleting whats in the permanent dir "perm" I haven't thought of doing that yet. If you would like to clear out the CSS anyway, let me know and I'll make some buttons for clearing the CSS and JavaScript. Boost tends to work best with CSS and JS file aggregation turned on.

#2

alrueden - October 29, 2009 - 17:30

Just to be entirely thorough, the way I update CSS files is to overwrite the old ones using FTP. So in theory, they should have updated immediately and shown my changes, correct? But when I go back to the site today, the CSS is still the old cached version from yesterday, even though cron runs every hour. It's also the same whether I'm logged in or not. I see this on two different computers and I've cleared my browser cache multiple times on each.

+1 for clear CSS/JS buttons. There may be a larger problem here, but it's probably nothing nuking the cache won't fix.

#3

mikeytown2 - October 29, 2009 - 18:32

How it works is when the boost cache is set the css files get set, so if you clear the html then the new css will take. Good point though; I'll put in the clear button.

#4

mikeytown2 - October 29, 2009 - 19:20
Title:How to clear cached CSS?» Clear cached CSS and/or JS button
Category:support request» feature request

#5

mikeytown2 - October 30, 2009 - 07:03
Status:active» needs review

The Reset button at the bottom of the boost page should clear the cache now :) also gives you a total file count.

AttachmentSize
boost-617314.patch 4.52 KB

#6

mikeytown2 - October 30, 2009 - 08:57

Decided that the "Clear All Cached Data" button under 'Boost File Cache' will clear the css/js as well.

AttachmentSize
boost-617314.patch 4.97 KB

#7

mikeytown2 - October 30, 2009 - 09:21
Status:needs review» needs work

Need to make it work with the parallel module.

#8

mikeytown2 - October 30, 2009 - 09:26

Parallel is 1/2 supported, still need to add in the .boost files in the correct directories.

AttachmentSize
boost-617314.1.patch 5.33 KB

#9

mikeytown2 - November 1, 2009 - 03:17
Status:needs work» needs review
AttachmentSize
boost-617314.patch 8.21 KB

#10

mikeytown2 - November 1, 2009 - 04:55
Status:needs review» fixed

committed

#11

alrueden - November 6, 2009 - 18:11

Downloaded the new version, and it works like a dream! Thanks so much!

#12

System Message - November 20, 2009 - 18:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.