Solved

SSH command to clear website cache when updates are made

Posted on 2008-06-20
4
1,349 Views
Last Modified: 2013-11-19
I have a site using Ruby on Rails. It has it's own administrator console to make changes to the website when needed. When I make the changes and confirm they do not show up on the site itself. I used to have to login to ssh and run a command to clear the cache so the site would update but I haven't done it in so long I forgot the command.

Thanks in advance!
0
Comment
Question by:bbrunning
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:albuitra
ID: 21832495
maybe
/etc/init.d/httpd restart ?
or
/etc/init.d/squid stop; /bin/rm /var/spool/squid/swap.state; /etc/init.d/squid start ?
0
 
LVL 10

Author Comment

by:bbrunning
ID: 21832549
No, it wasn't either of those....this is driving me nuts. It's more along the lines of a cache clearing command. Even restarting the entire server doesn't update it.
0
 
LVL 4

Expert Comment

by:albuitra
ID: 21832567
try with the second line
0
 
LVL 10

Accepted Solution

by:
bbrunning earned 0 total points
ID: 21832595
I figured it out. Thanks for trying!
Here's the command:
rake tmp:cache:clear
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now