Closed (fixed)
Project:
Cache Router
Version:
6.x-1.0-beta8
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
16 Jun 2009 at 14:44 UTC
Updated:
17 Sep 2009 at 06:40 UTC
File engine fixes.
| Comment | File | Size | Author |
|---|---|---|---|
| file-engine-fix.patch | 764 bytes | doq |
Comments
Comment #1
najibx commentedThis does fix issue with with 'engine' => 'file', as reported at http://drupal.org/node/353815
Comment #2
picardo commentedPhew. I'm glad I found this.
Can someone add this patch into the trunk already? It's kind of important.
Comment #3
vacilando commentedSubscribing
Comment #4
EnekoAlonso-1 commentedAnother issue I have found with File engine is that my cached pages where getting deleted very soon from disk. I looked everywhere for the right configuration, and even took a look at the values of the cache variables on my Drupal DB. But the issue was in the code.
The purge function was referring to a global variable $cache_lifetime which is not defined anywhere. Thus, all files where being deleted every time purge was called. I fixed this by calling variable_get instead:
Thanks
Comment #5
AndyW commentedI've installed CacheRouter on two different sites but even after using the above fix I'm still getting exactly the same error:
Missing argument 1 for dbCache::flush(), called in /home/jonty/public_html/example.com/sites/all/modules/cacherouter/CacheRouter.php on line 57 and defined in /home/jonty/public_html/examplef.com/sites/all/modules/cacherouter/engines/db.php on line 83.Comment #6
sinasalek commentedsubscribing
Comment #7
sinasalek commentedAnother issue , Appears on almost every page :
warning: fopen() expects parameter 1 to be string, object given in /home/base/public_html/teamwork/sites/all/modules/cacherouter/engines/file.php on line 113
Comment #8
slantview commentedFixed in cvs commit: http://drupal.org/cvs?commit=258754