Hello Everyone,

I'm new to drupal.

My drupal site frequently unavailable. And it would come back up without anything action were taken.

I suspected something is going on with caching or something ... that related to performance.

Anyway, my drupal directory  is D:\htdocs\drupal and I saw the folder D:\htdocs\drupal\cache\normal contain a lot of folders and files inside the sub-folder.

Files and sub-folders are still there even though I ran clear all caches unders Home » Administration » Configuration » Development successfully.

So, it is safe to delete files and sub-folders under D:\htdocs\drupal\cache\normal ?

Please help and greatly appreciate.

Thanks,

Marin

Comments

dibyajyoti.mallick’s picture

Hi,

It will better to clear cache through backend because Drupal store cache in database table also, some time it may cause issue.

Please follow the link: https://www.drupal.org/docs/7/administering-drupal-7-site/clearing-or-rebuilding-drupals-cache

Thanks

nara117’s picture

I was on that page early.

I followed these steps.

  1. The easiest way to clear the Drupal cache is to go to Administration > Configuration > Development > Performance (http://example.com/admin/config/development/performance)
  2. Click the button "Clear all caches"

But I'm curious about the files and sub-folders unders drupal/caches/normal

It's about 3GB size.

Will it empty if I ran the rebuild ?

Thanks

dibyajyoti.mallick’s picture

Yes every time it will rebuild cache folder when you clear the cache

For safer side do one thing take a backup caches folder and delete all files from cache and run the site again

Thanks

nara117’s picture

Okay, I will try it, thanks!

vm’s picture

per https://www.drupal.org/forum/general/general-discussion/2009-11-26/pleas... please edit your post and move it to the 'post installation' forum. Thank you.

2dareis2do’s picture

I had a similar problem. The standard clear cache from the ui does not seem to be a full cache rebuild and does not delete the files resulting in a very large cached directory. 

To do a full cache rebuild you need to follow:

https://www.drupal.org/docs/user_guide/en/prevent-cache-clear.html

Namely:

Using the rebuild script

  1. Open settings.php (/sites/default/settings.php) in any plain text editor. Add this line to the end of the file and save it:

    $settings['rebuild_access'] = TRUE;
  2. Visit http://www.example.com/core/rebuild.php in your browser (wherewww.example.com is your site’s URL). After a short pause, you should be redirected to the home page of your site, and the cache should be rebuilt.
  3. Open settings.php (/sites/default/settings.php) in a text editor. Find the line you added with $settings[rebuild_access], remove this line, and save the file.