symphonists / cachelite

Dead simple caching extension for the Symphony CMS. Uses the CacheLite library.
Other
19 stars 11 forks source link

Cache Period doesn't work at all #32

Closed ChoboHub closed 7 years ago

ChoboHub commented 8 years ago

The method _cleanDir($dir, $group = false, $mode = 'ingroup'){ ... } never get called.

It starts with $_automaticCleaningFactor = 0

starthere

Then when you go in the method save(..) {...}

tohere

And nowhere in the extension folders, $_automaticCleaningFactor isn't increment to 1 or modify.

The method simply skip the $this->clean(false, 'old'); and never call it, since $_automaticCleaningFactor = 0.

Here some screenshots of the save, clean and _cleanDir methods.

savemethod

cleanmethod

_cleandir

nitriques commented 7 years ago

The files does not get purged, but the period is respected.