Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

tlib#cache#Filename(): Use adler32 again

  • Loading branch information...
commit ebac2c3be4f2097c876e3b785af8eb2b7019d685 1 parent 77a7da1
@tomtom authored
Showing with 2 additions and 6 deletions.
  1. +2 −6 autoload/tlib/cache.vim
View
8 autoload/tlib/cache.vim
@@ -4,7 +4,7 @@
" @License: GPL (see http://www.gnu.org/licenses/gpl.txt)
" @Created: 2007-06-30.
" @Last Change: 2012-12-03.
-" @Revision: 0.1.216
+" @Revision: 0.1.217
" |tlib#cache#Purge()|: Remove cache files older than N days.
@@ -93,11 +93,7 @@ function! tlib#cache#Filename(type, ...) "{{{3
endif
let cache_file = tlib#file#Join([dir, file])
if len(cache_file) > g:tlib#cache#max_filename
- let shortfilename = pathshorten(file)
- let shortfilename .= '_'. tlib#hash#CRC32B(file)
- " if exists('*or')
- " let shortfilename .= '_'. tlib#hash#Adler32(file)
- " endif
+ let shortfilename = pathshorten(file) .'_'. tlib#hash#Adler32(file)
let cache_file = tlib#cache#Filename(a:type, shortfilename, mkdir, dir0)
endif
" TLogVAR cache_file
Please sign in to comment.
Something went wrong with that request. Please try again.