ZF-177: Make a constant for cleaning all expired cache except the accessed ones.

Issue Type: New Feature Created: 2006-06-30T14:30:44.000+0000 Last Updated: 2007-07-05T14:43:12.000+0000 Status: Resolved Fix version(s): Reporter: Marek Nos (fabicz) Assignee: Fabien MARTY (fab) Tags: - Zend_Cache

Related issues: Attachments:


e.g. constant CLEANING_MODE_ALL_NOT_ACCESSED should work same as CLEANING_MODE_ALL but should remove only files not accessed for $time (which should be option). Or make a method for this.


Posted by Fabien MARTY (fab) on 2006-06-30T16:54:10.000+0000

CLEANING_MODE_OLD mode is not a perfect way but can do a part of the job.

An unix cron with a "file" command can help too.

I agree with you but I set the priority to minor (and not major)

Posted by Marek Nos (fabicz) on 2006-06-30T17:40:05.000+0000

I agree.

BTW The more generally this feature request (posibility to delete only not accessed files) should be combined with CLEANING_MODE_OLD as well.

Posted by Mislav Marohni? (mislav) on 2006-07-09T08:13:26.000+0000

I don't think all filesystems write the 'accessed' timestamp as they should on read. However, this feature being an option, one could choose to use it on systems that don't have trouble with this.

I support this!

Posted by Fabien MARTY (fab) on 2006-07-18T16:07:27.000+0000

but it won't work with "non files" backends (like sqlite, apc, memcached...)

Posted by Fabien MARTY (fab) on 2006-09-03T05:46:15.000+0000

After some time to think about it, I find this proposal too specific :

=> it will work only with the File backend and only on some configurations of the File System (accessed tag is not always updated)

Moreover, on the functional point of view, I think it's not really a realy usefull option (comparatively to CLEANING_MODE_OLD)

So, I propose to close this "feature request".

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.