Author Topic: Clearing cache automatically  (Read 991 times)

Offline barry819

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +4/-1
    • View Profile
Clearing cache automatically
« on: December 04, 2024, 02:30:32 PM »
Is there a setting to peridoically clear cache?

here's the problem: my hosting package sets a limit on iNodes. Cache consumes iNodes, and as a result peridoically my site gets disabled (customers cannot place orders because they cannot add items to a shopping cart) unless I go in and manually clear all the site cache.

I'm on 1.3.3, and the cache clear function is only manual, there's no way to set the site to clear cache based on some time frame (daily, weekly, monthly, whatever).

Is there a setting somewhere that I have missed that would resolve this? Or an extension that could perform a periodic clear?
« Last Edit: December 04, 2024, 02:49:01 PM by barry819 »

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 6050
  • Karma: +284/-2
    • View Profile
Re: Clearing cache automatically
« Reply #1 on: December 05, 2024, 01:22:02 AM »
Hello.
First, you need a script that will delete the cache files. For example a simple shell or php script. Upload the clear_cache.sh script to your server. Now, you need to set up a cron job in your hosting panel to run this script at regular intervals.

 

Powered by SMFPacks Social Login Mod