Solved

SSH command to clear website cache when updates are made

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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
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…
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:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

815 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

8 Experts available now in Live!

Get 1:1 Help Now