hope the issue title is self explanatory

DB log shows

fopen(/sites/default/files/.ht.filecache/cache_page-http:.........%2Ftamil-articles%2F%25E0%25AE%2595%25E0%25AE%25BE%25E0%25AE%25AE-%25E0%25AE%25AA%25E0%25AF%2582%25E0%25AE%25A4%25E0%25AE%25A4%25E0%25AF%258D%25E0%25AE%25A4%25E0%25AF%2588-%25E0%25AE%25A4%25E0%25AE%259F%25E0%25AF%258D%25E0%25AE%259F%25E0%25AE%25BF-%25E0%25AE%258E%25E0%25AE%25B4%25E0%25AF%2581%25E0%25AE%25AA%25E0%25AF%258D%25E0%25AE%25AA%25E0%25AF%2581%25E0%25AE%25AE%25E0%25AF%258D) [function.fopen]: failed to open stream: File name too long in /sites/all/libraries/cache/filecache/filecache.inc on line 134.

Please consider hash the urls.

* i am using filecache.inc with backport of drupal cache 7 to 6.

Comments

vinoth.3v’s picture

Status: Active » Needs review

adding md5 hash to encode_cid function seems working.

  function encode_cid($cid) {
    if ($cid == '*') {
        return $cid;
    }   
    return md5(str_replace('%3A', ':', urlencode($cid)));
  }

but it needs review.

ogi’s picture

Status: Needs review » Fixed

Fixed in fb6bf6d by setting maximum for filename length and encoding the trailing part with MD5.

Status: Fixed » Closed (fixed)

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