Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
HI - I found that with the basic config as outlined in the included README.txt still in place in settings.php, simply disabling the filecache module still continued using disk as alternative cache mechanism. I wonder if it might be a more appropriate way of sandboxing and modularizing this helpful module to allow it to be disabled (and even uninstalled).
In my particular case, what got me was running benchmarks for the client: I couldn't see any differences in jmeter load tests with filecache enabled or "disabled." :)
-Bronius
Comments
Comment #1
jmdeleon CreditAttribution: jmdeleon commentedWhen using an alternate caching backend such as this (or APC), you must empty the 'cache' database table manually, with a direct SQL command (DELETE FROM `cache`;) before reverting back to the Drupal database cache.
Clearing cache with Drush then restored the site I was working on to using database cache, and got off File Cache completely. This issue describes the remedy (based on using APC as cache, but the concept is the same):
https://drupal.org/node/1341874#comment-5249602
Comment #2
texas-bronius CreditAttribution: texas-bronius commentedHmm - Do you think it would be sufficient, then, to perform the cache table truncate in a hook_disable (quickest and, in my case, what I'd have appreciated) or hook_uninstall (more "proper" by the definition of the hook in relation to the task performed (namely, disabling the module))? Perhaps both?
Comment #3
jmdeleon CreditAttribution: jmdeleon commented(Only seeing this reply now, as I've only revisited using this module)
I think a cache table truncate in a hook_disable would lead to a cleaner condition where the default database cache could be safely enabled again. Though I don't disagree with performing the truncate in both hook_disable and hook_uninstall.
Adding to my earlier comment: you can also empty the cache table from Drush with
drush sqlq 'delete from cache;'
before reverting to the default database cache.Comment #4
delacosta456 CreditAttribution: delacosta456 commentedhi
i was facing this issue too ... and on my own side in addition to all this commenting the filecache's lines inserted in settings.php so that it will be ignored resolve the issue..
hope it help
thanks
Comment #9
ogi CreditAttribution: ogi commented