Solved

SSH command to clear website cache when updates are made

Posted on 2008-06-20
4
1,347 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

762 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

26 Experts available now in Live!

Get 1:1 Help Now