Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

How to add cron in vesta to clear server cache? Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Locked
  • Print view
Advanced search
6 posts • Page 1 of 1
hafeezksa
Posts: 81
Joined: Mon Apr 27, 2015 5:45 pm
Contact:
Contact hafeezksa
Website

How to add cron in vesta to clear server cache?

Post by hafeezksa » Fri Mar 18, 2016 12:29 pm

How I can add cron job in vesta to clear daily server's buffers/cache without interrupting any process or service ?
plus, In other job clear swap cache ?
Top

leisegang
Posts: 64
Joined: Mon Feb 29, 2016 7:24 pm

Re: How to add cron in vesta to clear server cache?

Post by leisegang » Fri Apr 01, 2016 7:54 am

you could add it in terminal:

Code: Select all

crontab -l
0 * * *  * sync; echo 3 > /proc/sys/vm/drop_caches
or add it in vesta admin panel.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: How to add cron in vesta to clear server cache?

Post by tjebbeke » Mon Apr 04, 2016 2:57 pm

I suggest you to not do this!

https://www.kernel.org/doc/Documentation/sysctl/vm.txt (Read section: drop_caches)

http://www.linuxatemyram.com/
Top

susan albert
Posts: 2
Joined: Mon Nov 14, 2016 7:47 am

Re: How to add cron in vesta to clear server cache?

Post by susan albert » Mon Nov 14, 2016 8:35 am

tjebbeke wrote:I suggest you to not do this!
I agree with you because it will definitely create loading issues!
subchorionichemorrhagehealth care tippoikilothermia[/url]hyperthymesia
Last edited by susan albert on Wed Mar 15, 2017 12:03 am, edited 3 times in total.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: How to add cron in vesta to clear server cache?

Post by mehargags » Mon Nov 14, 2016 11:41 am

you should not do this on daily basis...
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: How to add cron in vesta to clear server cache?

Post by skurudo » Tue Dec 06, 2016 2:01 pm

mehargags wrote:you should not do this on daily basis...
Why? I see some maniacs do this every hour ;-)
Top


Locked
  • Print view

6 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password