Cron job for deleting cache
jfranco 0
From: -
From: -
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
jfranco
OP
0
From: -
From: -
Cron job for deleting cache
Thanks for the tip, I will try that and get back to you in case something goes wrong
Thanks for the tip, I will try that and get back to you in case something goes wrong
1 Re: Cron job for deleting cache
Philipp
From: Austria
Administrator
1342From: Austria
Cron job for deleting cache
Is the following line still in your download.php script?
In this case just change the line to:
The cache should refresh now every 15 minutes
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
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