JCache: how to remove expired cache

56 views
Skip to first unread message

Viper

unread,
Oct 1, 2016, 7:28:16 AM10/1/16
to Joomla! General Development
Hi!
I'm working with JCache and try to understand how to remove expired cache data from storage.
Should I use JCache->gc() method and how they will check for expires? Or I need to do it by checking JCache->get() for false?

klas berlič

unread,
Oct 4, 2016, 4:03:45 AM10/4/16
to joomla-de...@googlegroups.com
Hi,

gc is  the method you are looking for, it goes through all items in cache and checks if they expired

Regards,
Klas

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joomla-dev-general+unsub...@googlegroups.com.
To post to this group, send email to joomla-dev-general@googlegroups.com.
Visit this group at https://groups.google.com/group/joomla-dev-general.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages