Jump to content
Sign in to follow this  
TDLWebs

Manually Clear Cache?

Recommended Posts

This might be a silly question, but I thought I would ask before doing any damage šŸ™‚Ā Anyway...

My client has a site which has thousands of products, all with associated images. Clearing the cache in admin can often take a long time and very often will timeĀ out before it has finished. My question is:

Will it do any harm if I log into the server with SSH and manually delete everything in the 'cache' folder? Or is there anything in there that needs to be kept?Ā It seems to me that this would be a lot quicker.

Share this post


Link to post
Share on other sites

To be clear, the images in the /images/cache/ folder are not cleared when executing a general "Clear Cache" operation.

So, while your experiences are valid, they are not caused by a general "Clear Cache". There is a separate function to clear the image cache (admin, Maintenance, Rebuild tab, 'Clear image cache'.)

Share this post


Link to post
Share on other sites

That's very helpful, thanks.

I am aware of the separate function to clear the image cache but still get time outs. I guess this is because of the huge number of images. Perhaps I should increase the max_execution_time ???

I have contacted my hosting provider regardingĀ https://support.cubecart.com/hc/en-gb/articles/360003831737-How-do-I-enable-APC-Memcached-Redis-or-xCache-Ā so they can advise the best setup.

Is there an .htaccess in the image cache folder too? If so, I think if I was using SSH then I shouldĀ enter something likeĀ $ rm -v !(".htaccess")

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...