We're running into an issue on our live and staging sites where some of the pages don't have updated js or css files. These pages are still loading old versions of the css or js files. We've tried clearing Drupal cache, clearing the advagg cache (using smart cache flush), and flushing Varnish. None of these worked. The only thing that's worked for us was to delete all of the js and css files in the advagg files directory, then clear Drupal cache, then flush Varnish. Any help is appreciated.

CommentFileSizeAuthor
#3 advagg-1161570-3.patch687 bytesmikeytown2

Comments

djbobbydrake’s picture

After deleting all of the js files in the advagg directory, it seems that when the js files were recreated, some of them still had old javascript in there. So we had to delete all of the js files a second time around. Hope that helps.

mikeytown2’s picture

On the "admin/settings/advagg" page under "File Checksum Mode:" Do you still get the same issues if you switch this to md5 instead of mtime?

mikeytown2’s picture

Status: Active » Fixed
StatusFileSize
new687 bytes

Got a better idea, use clearstatcache().

Going to mark this as fixed... let me know if this doesn't do it. md5 should have done it as well.

djbobbydrake’s picture

Yep, we are using md5. Will try the latest dev and see if this fixes.

djbobbydrake’s picture

Also, would it matter if we're using memcache? Those advagg cache tables are stored in memcache.

mikeytown2’s picture

We use memcache here as well; be sure to be using 1.9 or higher; a lot of good changes went into that release.

djbobbydrake’s picture

Appreciate it. We were running 1.8 and we weren't using the memcache-lock file.

Status: Fixed » Closed (fixed)

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