0 Members and 1 Guest are viewing this topic.

*

bart

  • *
  • 16
  • osDate Version: osDateEvo v1.3
Hi,
I have checked the file: delete_cache_files.php as it should delete cachefiles.
But it is not deleting anything.
I see this in admin: Time in minutes after which cached pages will be removed. 30

When I run the php file in a browser, I get this message: Old cache files deleted..

But when I check the folders and subfolders of /temp/cache/ it shows all the files.
And these are images of users in this folder and not even page-cache?

When I remove from line 62:
Code: [Select]
&& filemtime($fromdir."/".$file) < $tmIt deletes all files.
And after putting
Code: [Select]
$tm = time() - $config['time_cache_expiry']*60;inside while loop, it works on config date too.
I don't know if this the right way, but it works for now.

I use it on osDateEvo 1.3 and with PHP 7.1.4

*

Pharg

  • *****
  • 3,148
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: what is cronjob delete cache files for, images or template files?
« Reply #1 on: June 06, 2018, 12:25:52 PM »
Hi Bart,

The  /temp/cache/ folders are Not for the Cache system, if you look in those folders, you will find the userimages in there to the members.

Don't ask me why the original developers named it cache but they did.

The actual cache folder is the /temp/templates_c/ so it's for the template tpl files.
« Last Edit: June 06, 2018, 12:30:05 PM by Pharg »
Regards,
Pharg ( Phill )

Don't Personal Message me unless it's about a sensitive matter!!

REMEMBER TO ALWAYS BACKUP BEFORE MAKING ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.2 | MySQL: 5.5.35

*

bart

  • *
  • 16
  • osDate Version: osDateEvo v1.3
Re: what is cronjob delete cache files for, images or template files?
« Reply #2 on: June 06, 2018, 01:34:13 PM »
ok, so the cronjob file must be changed
from
Code: [Select]
DeleteFiles('../temp/cache/', $tm);to
Code: [Select]
DeleteFiles('../temp/templates_c/', $tm);