Solved

SSH command to clear website cache when updates are made

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

821 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