This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

Cron job for deleting cache


avatar
jfranco 0
From: -
Cron job for deleting cache

Hi Philipp,

I'm having a persistent problem with some custom code we wrote together for pulling information from the ST database all while using similar cache techniques as you use throughout ST.

I run the exact same code in different sections of my site just modified for the fields needed (news, reviews, downloads, etc.) however I always get both the english and spanish download sections stuck with non updating listings:
 http://www.techspot.com/downloads.html

The solution I have come up with is simply deleting the cache whenever I see this happening but it would be much more practical if I could run a cron job so it does that automatically. I know the cache coding is meant to be that but in this section's frontpage it is not working.

Thanks,

Julio
 http://www.techspot.com

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: Cron job for deleting cache
avatar
OP 0
From: -
Cron job for deleting cache

Thanks for the tip, I will try that and get back to you in case something goes wrong Smiling Face
1 Re: Cron job for deleting cache
avatar
Administrator
1342
From: Austria
Cron job for deleting cache

Is the following line still in your download.php script?

WriteCache("download", "download", $download, 0);

In this case just change the line to:

WriteCache("download", "download", $download, mktime()+900);

The cache should refresh now every 15 minutes

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.